Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » al_destroy_display & al_create_display CONT.

This thread is locked; no one can reply to it. rss feed Print
al_destroy_display & al_create_display CONT.
AceBlkwell
Member #13,038
July 2011
avatar

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
// al_destroy_display(disp);
// disp = al_create_display(nDispWD,nDispHT);
// al_register_event_source(queue, al_get_display_event_source(disp));

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
avatar

AceBlkwell
Member #13,038
July 2011
avatar

Nice, It never occurred to me to assign one screen to another. Thanks.

Go to: