From 687b83dd5f45cd7528d4ec30189e77c4180d4182 Mon Sep 17 00:00:00 2001 From: avolkov Date: Wed, 7 Dec 2005 16:51:23 +0000 Subject: [PATCH] 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 --- sc2/src/sc2code/util.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc2/src/sc2code/util.c b/sc2/src/sc2code/util.c index 908262b5b..4a14e188e 100644 --- a/sc2/src/sc2code/util.c +++ b/sc2/src/sc2code/util.c @@ -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);