al_get_display_mode
ALLEGRO_DISPLAY_MODE *al_get_display_mode(int index, ALLEGRO_DISPLAY_MODE *mode)
Introduced in 5.0.0
Retrieves a display mode. Display parameters should not be changed between a call of al_get_num_display_modes and al_get_display_mode. index must be between 0 and the number returned from al_get_num_display_modes-1. mode must be an allocated ALLEGRO_DISPLAY_MODE structure. This function will return NULL on failure, and the mode parameter that was passed in on success.
See also: ALLEGRO_DISPLAY_MODE, al_get_num_display_modes
Examples: ex_display_options, ex_monitorinfo
Most helpful discussions:
- [A5] Fullscreen + keep 4:3 ratio (1)
- Fullscreen (1)
- 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
Other recent discussions:
- A5 setting color depth problem (Linux)
- 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...
- [A5] Fullscreen Fails in Ubuntu
- _al_wgl_get_display_mode not returning format
- ALLEGRO_FULLSCREEN and al_flip_display problem