diff options
author | Torbjörn Andersson | 2003-09-09 12:45:33 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-09-09 12:45:33 +0000 |
commit | 5bf1974a0853f9b1d303f74f45c23e6d409ecb5d (patch) | |
tree | 5318ff58394c04d5dbb72e3c5baad28c4e5340bb /sword2/build_display.cpp | |
parent | 555dae9feeaaf2559dfe4c9fb4fb5dbcb19404c0 (diff) | |
download | scummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.tar.gz scummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.tar.bz2 scummvm-rg350-5bf1974a0853f9b1d303f74f45c23e6d409ecb5d.zip |
Our ServiceWindows() never returns RDERR_APPCLOSED, and we always behave as
if we have the focus, so there's no need to check.
svn-id: r10130
Diffstat (limited to 'sword2/build_display.cpp')
-rw-r--r-- | sword2/build_display.cpp | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sword2/build_display.cpp b/sword2/build_display.cpp index c71deb0829..c388bfde19 100644 --- a/sword2/build_display.cpp +++ b/sword2/build_display.cpp @@ -272,9 +272,7 @@ void Build_display(void) { //Tony21Sept96 // --------------------------------------------------- // ready - blit to screen - // if the game is being shut down, drop out - if (ServiceWindows() == RDERR_APPCLOSED) - break; + ServiceWindows(); //---------------------------------------------------- // update our fps reading @@ -406,19 +404,7 @@ void DisplayMsg(uint8 *text, int time) { // Chris 15May97 uint32 targetTime = SVM_timeGetTime() + (time * 1000); while (SVM_timeGetTime() < targetTime) { - //-------------------------------------------------- - // Service windows - while (!gotTheFocus) - if (ServiceWindows() == RDERR_APPCLOSED) - break; - - // if we pressed Ctrl-Q - if (ServiceWindows() == RDERR_APPCLOSED) { - Close_game(); //close engine systems down - CloseAppWindow(); - exit(0); //quit the game - } - //-------------------------------------------------- + ServiceWindows(); EraseBackBuffer(); // for hardware rendering EraseSoftwareScreenBuffer(); // for software rendering |