Hi,
I’ve noticed that, when I restore a maximized window in WindowsXP, I’m not
getting the SDL_VIDEORESIZE event I’d expected. This means that when my
app is restored from a maximized state it looks ugly.
I think this is an SDL bug. Can you reproduce it with the testwm test
program in the SDL source archive?
[I played with testwm on Win98 and XP]
This is more like a feature isn’t it?
SDL_VIDEORESIZE is sent when the size of the window changes.
SDL_VIDEORESIZE isn’t sent when a normal window is iconified/restored, so why
would the situation be any different for a maximized window (on Windows, this
is different from fullscreen)?
SDL_ACTIVEEVENT is sent when the window is iconified/restored so this can be
used, along with knowledge of the size of the window from previous
SDL_VIDEORESIZE events, to restore the surfaces.
In fact, if an app is iconified, the desktop size changed, and the app then
restored, an SDL_ACTIVEEVENT is followed by an SDL_VIDEORESIZE event.
However, I’ve noticed that SDL_ACTIVEEVENT causes beginners (I was caught out)
quite a lot of trouble because ‘state’ can be a combination of the flags:
SDL_APPMOUSEFOCUS, SDL_APPINPUTFOCUS and SDL_APPACTIVE.
For example, the combination SDL_APPACTIVE | SDL_APPINPUTFOCUS is sent when an
application loses input focus and active status. Separating these three into
different events might be something to think about for SDL 1.3,
best regards,
John.
P.S. congratulations on your new family member!On Sunday 16 May 2004 19:11, Sam Lantinga wrote:
Thanks,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl