Bug-report: SDL_VIDEORESIZE event not generated

Hello all,

I noticed what appears to be a bug in SDL 1.2.9.0 in Windows (it was also
in the previous version). There’s a
particular case when I expect an SDL_VIDEORESIZE event to be generated,
but it isn’t.

The bug repro. app is here:
http://www.cs.stevens.edu/~acorriga/sdl.zip

Specifically the event is not generated if I maximize the window without
doing anything else, and then click ‘restore down’ (the button which
replaces ‘maximize’ when the window is maximized). No event is generated
and hence my glViewport call isn’t reached. If I first resize the window
before I maximize and subsequently click ‘restore down’ an SDL_VIDEORESIZE
event is generated and my call to glViewport is reached.

Sincerely,
Andrew Corrigan

I noticed what appears to be a bug in SDL 1.2.9.0 in Windows (it was also
in the previous version). There’s a
particular case when I expect an SDL_VIDEORESIZE event to be generated,
but it isn’t.

Can you test with the latest CVS code? It appears to work for me
(tested with testwm -resize and then looking at stdout.txt)
http://www.libsdl.org/cvs/SDL-1.2.zip

Thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment