|
al_destroy_display & al_create_display CONT. |
AceBlkwell
Member #13,038
July 2011
|
Edgar, I thought about the creating a display (2nd) before destroying the first but I don't see how I could do that without using different display name. It would be hard to track which display I was using if multiple changes were made. What I am seeing some luck with to this point, is I removed the destroy / create and did a resize. al_resize_display(disp, nDispWD, nDispHT); The draw scale command I've been using seems to keep the pictures and drawn items to scale. Plus the program doesn't drop or lag. Granted I've just made the change and it could be too early to tell if it will hold in a playing situation. I'll keep you posted if you are interested. |
Edgar Reynaldo
Major Reynaldo
May 2007
|
All it would take is a temporary variable to hold the second display. You're going to destroy it anyway, so it doesn't matter. ALLEGRO_DISPLAY* d = al_create_display(...); ALLEGRO_DISPLAY* dtemp = al_create_display(...); al_destroy_display(d); d = dtemp;// same variable, different value dtemp = 0;
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 |
AceBlkwell
Member #13,038
July 2011
|
Nice, It never occurred to me to assign one screen to another. Thanks. |
|