Macaw OS C reference

Function sys_display

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

Finds out the size of the whole screen and how many colours it shows.

Parameters

wint *
Where to put the screen's width in pixels: pass the address of an int, like &w, or NULL.
hint *
Where to put the screen's height in pixels, the same way.
coloursint *
Where to put its colours: 8, 256 or COLORS_THOUSANDS (32768).

In The system, with platform, ismac, modkey, memory, sys_version, sys_fps, sys_volume, sys_screenshot, sys_title, sys_cursor, sys_clipboard, sys_setclipboard.