SDL Bugfix to work with Windows and Linux
This commit is contained in:
parent
ae632f4d7a
commit
1f78d09b80
|
@ -348,12 +348,7 @@ void Program::showMessage(const char *msg) {
|
||||||
|
|
||||||
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
#ifndef WIN32
|
showCursor(true);
|
||||||
int sdl_CursorState = SDL_ShowCursor(SDL_QUERY);
|
|
||||||
if(sdl_CursorState == SDL_DISABLE) {
|
|
||||||
showCursor(true);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
|
//SDL_WM_ToggleFullScreen(SDL_GetVideoSurface());
|
||||||
ShowMessageProgramState *showMsg = new ShowMessageProgramState(this, msg);
|
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__);
|
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
#ifndef WIN32
|
showCursor(Config::getInstance().getBool("Windowed"));
|
||||||
showCursor((sdl_CursorState == SDL_ENABLE));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
//MainWindow *mainWindow= new MainWindow(this);
|
//MainWindow *mainWindow= new MainWindow(this);
|
||||||
init(this->window,false);
|
init(this->window,false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user