Macaw OS C reference

Function display_current

#include <macaw.h>
void display_current(int *w, int *h, int *colours);

Tells you the screen's size and how many colours it shows, all in one call.

Parameters

wint *
Where to put the width in pixels: pass the address of an int, like &w, or NULL.
hint *
Where to put the height in pixels: pass the address of an int, like &h, or NULL.
coloursint *
Where to put the number of colours (8, 256 or COLORS_THOUSANDS): pass &colours, or NULL.

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