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);