Fixes Pause dialog undrawing incorrectly during the ending sequences
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2038 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -149,6 +149,7 @@ PauseGame (void)
|
||||
CONTEXT OldContext;
|
||||
FRAME F;
|
||||
HOT_SPOT OldHot;
|
||||
RECT OldRect;
|
||||
|
||||
if (ActivityFrame == 0
|
||||
|| (GLOBAL (CurrentActivity) & (CHECK_ABORT | CHECK_PAUSE))
|
||||
@@ -166,6 +167,8 @@ PauseGame (void)
|
||||
LockMutex (GraphicsLock);
|
||||
OldContext = SetContext (ScreenContext);
|
||||
OldHot = SetFrameHot (Screen, MAKE_HOT_SPOT (0, 0));
|
||||
GetContextClipRect (&OldRect);
|
||||
SetContextClipRect (NULL_PTR);
|
||||
|
||||
GetFrameRect (ActivityFrame, &r);
|
||||
r.corner.x = (SCREEN_WIDTH - r.extent.width) >> 1;
|
||||
@@ -197,6 +200,7 @@ PauseGame (void)
|
||||
DrawStamp (&s);
|
||||
DestroyDrawable (ReleaseDrawable (s.frame));
|
||||
|
||||
SetContextClipRect (&OldRect);
|
||||
SetFrameHot (Screen, OldHot);
|
||||
SetContext (OldContext);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user