|
Video adapter of a display |
roger levy
Member #2,513
July 2002
|
How do you get the video adapter number in use by a given display? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Each adapter represents a monitor. You can get the primary display by searching for the monitor at 0,0. To get a specific monitor, you need it's coordinates. See al_get_monitor_info for details. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
roger levy
Member #2,513
July 2002
|
How would I get the needed information from an ALLEGRO_DISPLAY? |
Edgar Reynaldo
Major Reynaldo
May 2007
|
You don't. The adapter set is the one specified by al_set_new_display_adapter, which defaults to 0. Rather, just call al_get_new_display_adapter and al_get_monitor_info. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
roger levy
Member #2,513
July 2002
|
I am not sure that's true because my program is starting on my secondary display. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Adapter 0 is not guaranteed to be the primary display. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
roger levy
Member #2,513
July 2002
|
I see. Thanks. |
|