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:
And properly "register" display events in my queue.
Then i do a resize like:
But in the loop where in checks for "messages", after calling al_resize_display() the code never falls here:
if (event.type == ALLEGRO_EVENT_DISPLAY_RESIZE)
//something to do with the new resized window.