mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/ui: bug fix: adjust the max skip count for fullscreening
Closes #2500
This commit is contained in:
parent
d1b9a0a9a1
commit
3eb2b480be
@ -166,7 +166,8 @@ func (c *context) drawGame(graphicsDriver graphicsdriver.Graphics, forceDraw boo
|
|||||||
return err
|
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 !forceDraw && !theGlobalState.isScreenClearedEveryFrame() && !c.isOffscreenDirty {
|
||||||
if c.skipCount < maxSkipCount {
|
if c.skipCount < maxSkipCount {
|
||||||
|
Loading…
Reference in New Issue
Block a user