Macaw OS C reference

Function display_size

#include <macaw.h>
int display_size(int i, int *w, int *h);

Gives you one of the sizes the last display_sizes found. Call display_sizes first.

Parameters

iint
Which size, counting from 0.
wint *
Where to put its width in pixels: pass the address of an int, like &w.
hint *
Where to put its height in pixels: pass the address of an int, like &h.

Returns int

1 if there's a size i, or 0 if there isn't.

In The screen, with display_width, display_height, display_current, display_sizes, display_request.