Take clipping rect into account when confirming exit (bug #673)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1601 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-03-30 18:18:22 +00:00
parent 9ba03f7f0a
commit 6a32373f8d
+4
View File
@@ -103,10 +103,13 @@ DoConfirmExit (void)
STAMP s;
FRAME F;
CONTEXT oldContext;
RECT oldRect;
BOOLEAN response = FALSE, done;
in_confirm = TRUE;
oldContext = SetContext (ScreenContext);
GetContextClipRect (&oldRect);
SetContextClipRect (NULL_PTR);
r.extent.width = CONFIRM_WIN_WIDTH + 4;
r.extent.height = CONFIRM_WIN_HEIGHT + 4;
@@ -170,6 +173,7 @@ DoConfirmExit (void)
ExitRequested = FALSE;
GamePaused = FALSE;
FlushInput ();
SetContextClipRect (&oldRect);
SetContext (oldContext);
}
UnlockMutex (GraphicsLock);