SDL Bugfix to work with Windows and Linux

This commit is contained in:
Mark Vejvoda 2010-03-17 19:10:18 +00:00
parent ae632f4d7a
commit 1f78d09b80
1 changed files with 2 additions and 9 deletions

View File

@ -348,12 +348,7 @@ void Program::showMessage(const char *msg) {
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
#ifndef WIN32
int sdl_CursorState = SDL_ShowCursor(SDL_QUERY);
if(sdl_CursorState == SDL_DISABLE) {
showCursor(true);
}
#endif
showCursor(true);
//SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
ShowMessageProgramState *showMsg = new ShowMessageProgramState(this, msg);
@ -375,9 +370,7 @@ void Program::showMessage(const char *msg) {
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
#ifndef WIN32
showCursor((sdl_CursorState == SDL_ENABLE));
#endif
showCursor(Config::getInstance().getBool("Windowed"));
//MainWindow *mainWindow= new MainWindow(this);
init(this->window,false);