Function display_request
#include <macaw.h>void display_request(int w, int h, int colours, void (*fn)(int ok));
Asks for the screen to be a different size or show a different number of colours. The person is asked first, and if they don't allow it, your program closes. The screen goes back when your program quits.
Parameters
wint- The width you want, in pixels, or 0 to keep it as it is.
hint- The height you want, in pixels, or 0 to keep it as it is.
coloursint- 8, 256 or
COLORS_THOUSANDS, or 0 to keep it as it is. fnvoid (*)(int ok)- Your function to call with the answer:
okis 1 once the screen has changed, 0 if that size isn't one it can be.NULLif you don't need to know.
In The screen, with display_width, display_height, display_current, display_sizes, display_size.