mirror of
https://github.com/glest/glest-source.git
synced 2025-08-29 10:49:48 +02:00
Attempt for bugfix to resume from msgbox
This commit is contained in:
@@ -346,11 +346,19 @@ 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__);
|
||||||
|
|
||||||
showCursor(true);
|
#ifndef WIN32
|
||||||
|
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);
|
||||||
this->programState = showMsg;
|
//this->programState = showMsg;
|
||||||
|
|
||||||
|
this->programState = NULL;
|
||||||
|
setState(showMsg);
|
||||||
|
|
||||||
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
//if(Socket::enableDebugText) printf("In [%s::%s %d]\n",__FILE__,__FUNCTION__,__LINE__);
|
||||||
|
|
||||||
@@ -365,6 +373,10 @@ 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((sdl_CursorState == SDL_ENABLE));
|
||||||
|
#endif
|
||||||
|
|
||||||
//MainWindow *mainWindow= new MainWindow(this);
|
//MainWindow *mainWindow= new MainWindow(this);
|
||||||
init(this->window);
|
init(this->window);
|
||||||
setState(originalState);
|
setState(originalState);
|
||||||
|
Reference in New Issue
Block a user