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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user