Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?
Ing. Gabriel Gambetta
ARTech - GeneXus Development Team
ggambett at artech.com.uy
Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?
Are you not getting any events at all? Remember that the app active
event contains a mask of what type of focus you are getting.
If you just aren’t getting any events, can you make sure the problem
happens with testwm in the SDL test directory?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment
I moved the static variable video_flags to the top of the file
SetVideoMode(640, 480);
}
The problem only occurs after going into full screen mode and back to
windowed again.
The SDL_APPACTIVE never comes in with the APPMOUSEFOCUS flag set, although
it does arrive with input focus and app focus.
(I do know that it is a bitmask - that part of the code didn’t change.)
Thanks for looking into this!
–Warren Schwader> ----- Original Message -----
From: slouken@devolution.com (Sam Lantinga)
To:
Sent: Saturday, February 14, 2004 1:02 PM
Subject: Re: [SDL] SDL_APPACTIVE & WinXP
Is it possible that SDL_APPACTIVE is not being sent correctly
in WinXP? I added some code to stop the mixer when the game loses
focus and resume it when it gains focus; it works OK in Linux and
in Windows98 but it doesn’t seem to work in WindowsXP. Can anyone
confirm this?
Are you not getting any events at all? Remember that the app active
event contains a mask of what type of focus you are getting.
If you just aren’t getting any events, can you make sure the problem
happens with testwm in the SDL test directory?
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment