Attempt for bugfix to resume from msgbox

This commit is contained in:
Mark Vejvoda
2010-03-17 17:24:12 +00:00
parent 399c463f9d
commit eddd0cd19b

View File

@@ -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);