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;
|
STAMP s;
|
||||||
FRAME F;
|
FRAME F;
|
||||||
CONTEXT oldContext;
|
CONTEXT oldContext;
|
||||||
|
RECT oldRect;
|
||||||
BOOLEAN response = FALSE, done;
|
BOOLEAN response = FALSE, done;
|
||||||
|
|
||||||
in_confirm = TRUE;
|
in_confirm = TRUE;
|
||||||
oldContext = SetContext (ScreenContext);
|
oldContext = SetContext (ScreenContext);
|
||||||
|
GetContextClipRect (&oldRect);
|
||||||
|
SetContextClipRect (NULL_PTR);
|
||||||
|
|
||||||
r.extent.width = CONFIRM_WIN_WIDTH + 4;
|
r.extent.width = CONFIRM_WIN_WIDTH + 4;
|
||||||
r.extent.height = CONFIRM_WIN_HEIGHT + 4;
|
r.extent.height = CONFIRM_WIN_HEIGHT + 4;
|
||||||
@@ -170,6 +173,7 @@ DoConfirmExit (void)
|
|||||||
ExitRequested = FALSE;
|
ExitRequested = FALSE;
|
||||||
GamePaused = FALSE;
|
GamePaused = FALSE;
|
||||||
FlushInput ();
|
FlushInput ();
|
||||||
|
SetContextClipRect (&oldRect);
|
||||||
SetContext (oldContext);
|
SetContext (oldContext);
|
||||||
}
|
}
|
||||||
UnlockMutex (GraphicsLock);
|
UnlockMutex (GraphicsLock);
|
||||||
|
|||||||
Reference in New Issue
Block a user