carta
SCREEN_H(3alleg4)

SCREEN_H3alleg4

Global define to obtain the size of the screen. allegro game programming library.

Part of SCREEN_W(3alleg4).

Overview

Global defines that return the width and height of the screen, or zero if the screen has not been initialised yet. Example:

   char buf[100];
   ...
   uszprintf(buf, sizeof(buf),
             "The screen size is %d x %d pixels",
             SCREEN_W, SCREEN_H);

History

  • Debian 13 (Trixie) to Debian 11 (Bullseye): the text shown here
  • Debian 10 (Buster) to Debian 7 (Wheezy)

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.