From 1f78d09b80cb3b63ab763adb207c64d837ccbf7f Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Wed, 17 Mar 2010 19:10:18 +0000 Subject: [PATCH] SDL Bugfix to work with Windows and Linux --- source/glest_game/main/program.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/source/glest_game/main/program.cpp b/source/glest_game/main/program.cpp index 858fce2d..8c594afa 100644 --- a/source/glest_game/main/program.cpp +++ b/source/glest_game/main/program.cpp @@ -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);