Allegro 5 api
#include <allegro5/allegro.h> int al_get_display_width(ALLEGRO_DISPLAY *display)
Gets the width of the display. This is like SCREEN_W in Allegro 4.x.
al_get_display_height(3alleg5)