al_set_new_display_adapter
void al_set_new_display_adapter(int adapter)
Introduced in 5.0.0
Sets the adapter to use for new displays created by the calling thread. The adapter has a monitor attached to it. Information about the monitor can be gotten using al_get_num_video_adapters and al_get_monitor_info.
To return to the default behaviour, pass ALLEGRO_DEFAULT_DISPLAY_ADAPTER
.
See also: al_get_num_video_adapters, al_get_monitor_info
Examples: ex_bitmap, ex_dualies, ex_fs_resize, ex_monitorinfo, ex_winfull
Most helpful discussions:
- Fullscreen on other than main screen?
- [A5] Show & Hide window/display Cross-Platform ?
- Change adapter un runtime
- Does al_set_new_display_adapter affect al_get_display_mode?
- [A5] Display always on top?
- display adapter #s are different with ALLEGRO_FULLSCREEN_WINDOW
- Allegro windows show up on incorrect monitor (continued)
- Patch for _al_d3d_get_display_mode
- [A5] Dual monitors issue
- A5 Daul screen
Other recent discussions: