ALLEGRO_DISPLAY_MODE
typedef struct ALLEGRO_DISPLAY_MODE
Introduced in 5.0.0
Used for display mode queries. Contains information about a supported fullscreen display mode.
typedef struct ALLEGRO_DISPLAY_MODE {
int width; // Screen width
int height; // Screen height
int format; // The pixel format of the mode
int refresh_rate; // The refresh rate of the mode
} ALLEGRO_DISPLAY_MODE;See also: al_get_display_mode
Examples: ex_display_options, ex_monitorinfo
Most helpful discussions:
- Drawing text slows down FPS dramatically
- Does al_set_new_display_adapter affect al_get_display_mode?
- al_draw_bitmap_region does not return
- Can't enumerate fullscreen modes before a display is created
- weird mouse issue
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- Strange lags in really simple project
- al_draw_filled_rectangle v. slow compared to al_draw_filled_rectangle
- A5 setting color depth problem (Linux)
- Fullscreen
Other recent discussions:
- Trying Allegro, can't get to compile with CodeBlocks!
- Extreme slow down on Windows
- Fullscreen on Mac OSX Mountain Lion not working
- al_get_display_mode on Windows and Linux
- Allegro5 Full-Screen Problem
- I've been staring at the same sections of code for two hours...
- _al_wgl_get_display_mode not returning format
- ALLEGRO_FULLSCREEN and al_flip_display problem
- Patch for _al_d3d_get_display_mode
- Getting current display mode