From 3eb2b480be862b4927c04a12ae0fbc7853794537 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 20 Dec 2022 02:46:21 +0900 Subject: [PATCH] internal/ui: bug fix: adjust the max skip count for fullscreening Closes #2500 --- internal/ui/context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ui/context.go b/internal/ui/context.go index ead3cbc13..73cac4c3b 100644 --- a/internal/ui/context.go +++ b/internal/ui/context.go @@ -166,7 +166,8 @@ func (c *context) drawGame(graphicsDriver graphicsdriver.Graphics, forceDraw boo return err } - const maxSkipCount = 3 + // 180 might be too big but this is a enough value to consider exiting from fullscreen on macOS (#2500). + const maxSkipCount = 180 if !forceDraw && !theGlobalState.isScreenClearedEveryFrame() && !c.isOffscreenDirty { if c.skipCount < maxSkipCount {