al_get_display_width
int al_get_display_width(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
Gets the width of the display. This is like SCREEN_W in Allegro 4.x.
See also: al_get_display_height
Examples: ex_bitmap, ex_display_options, ex_draw_bitmap, ex_expose, ex_filter, ex_font_justify, ex_fs_resize, ex_fs_window, ex_native_filechooser, ex_ogre3d, ex_resize2, ex_stream_seek
Most helpful discussions:
- Section of Code Lagging the Program
- Display Mode removes window controls
- Problem with al_creat_bitmap
- Display (fullscreen window) and window dimensions
- A5 Fullscreen Vs Windowed
- al_draw_textf causing crash
- Scaling look likes junk.
- Getting Allegro to Play Nice with Windows Scaling Settings
- help: memory bitmap background image causing artifacts
- al_set_new_window_position / al_get_window_position mismatch
Other recent discussions:
- ak_create_display problem in Android
- Stepping Into the Third Dimension
- Draw to bitmap failing
- Quick Question about MSAA
- scaling low-res screens
- Temporally blocking window resizing.
- Scaling down runtime created bitmaps makes them transparent
- Depth bug (Allegro 5 + Opengl)
- Audio seems overly complicated :(
- Question about ALLEGRO_FULLSCREEN_WINDOW