al_destroy_display & al_create_display CONT.
AceBlkwell

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

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;

8-)

AceBlkwell

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

Thread #618916. Printed from Allegro.cc