Hi,
I just found a bug in the windows version of SDL. If you intialize your
screen in fullscreen software mode, hide the mouse and reinitialize it
in opengl fullscreen mode, then SDL crashs. (gdb tells me inside the
SDL_WarpMouse function that is called from SDL_SetVideoMode)
Greetings
Matze
PS: My testcase
#include <SDL.h>
int main(int argc, char** argv)
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
SDL_ShowCursor(SDL_DISABLE);
SDL_Delay(1000);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL);
SDL_Quit();
printf(“Everything okay\n”);
}
AHA! That’s the one I’m seeing, and I couldn’t figure out how to reproduce
it without Aleph One’s 200K LOC.
FWIW if you use windib it works OK.
GregoryOn Thu, 20 Oct 2005, Matze Braun wrote:
Hi,
I just found a bug in the windows version of SDL. If you intialize your
screen in fullscreen software mode, hide the mouse and reinitialize it
in opengl fullscreen mode, then SDL crashs. (gdb tells me inside the
SDL_WarpMouse function that is called from SDL_SetVideoMode)
Greetings
Matze
PS: My testcase
#include <SDL.h>
int main(int argc, char** argv)
{
SDL_Init(SDL_INIT_EVERYTHING);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN);
SDL_ShowCursor(SDL_DISABLE);
SDL_Delay(1000);
SDL_SetVideoMode(640, 480, 0, SDL_FULLSCREEN | SDL_OPENGL);
SDL_Quit();
printf(“Everything okay\n”);
}
I just found a bug in the windows version of SDL. If you intialize your
screen in fullscreen software mode, hide the mouse and reinitialize it
in opengl fullscreen mode, then SDL crashs.
This is fixed in CVS, thanks!
-Sam Lantinga, Senior Software Engineer, Blizzard Entertainment