SCREEN_W man page
SCREEN_W, SCREEN_H ā Global define to obtain the size of the screen. Allegro game programming library. Global defines that return the width and height of the screen, or zero if the screen has not been initialised yet. Example: ex3buf(3), ex3d(3), exaccel(3), exalpha(3), exbitmap(3), exblend(3), excamera(3), excolmap(3), exconfig(3), exdbuf(3), exflame(3), exflip(3), exfont(3), exhello(3), exjoy(3), exkeys(3), exlights(3), exmem(3), exmidi(3), exmouse(3), expackf(3), expal(3), exrotscl(3), exsample(3), exscale(3), exscn3d(3), exscroll(3), exshade(3), exspline(3), exsprite(3), exstars(3), exstream(3), exswitch(3), exsyscur(3), extimer(3), extrans(3), extruec(3), exunicod(3), exupdate(3), exxfade(3), exzbuf(3), set_gfx_mode(3), VIRTUAL_W(3). The man page SCREEN_H(3) is an alias of SCREEN_W(3).Synopsis
#include <allegro.h>
#define SCREEN_W;
#define SCREEN_H;
Description
char buf[100];
...
uszprintf(buf, sizeof(buf),
"The screen size is %d x %d pixels",
SCREEN_W, SCREEN_H);
See Also
Referenced By