- Online Community Forums » Programming Questions » Window Resize??

This thread is locked; no one can reply to it. rss feed Print
Window Resize??
Lucas Dalmasso
Member #20,839
August 2021

Well, i have a fixed window (not resizable) that changes the size 1x,2x and so on...
I tought it would be easy to "detect" when the main window is sized/resized so i found ALLEGRO_EVENT_DISPLAY_RESIZE to do the job, but it seems the "resize" message is not put to the queue.

This is what a i do:

 ALLEGRO_DISPLAY* display = al_create_display(320, 240);

And properly "register" display events in my queue.

Then i do a resize like:

al_resize_display(display, 640, 480);

But in the loop where in checks for "messages", after calling al_resize_display() the code never falls here:

    //something to do with the new resized window.

Any Help?

Edgar Reynaldo
Major Reynaldo
May 2007

Go to: