Skip to content

Commit f83c855

Browse files
authored
prevent ios arithmetic error on init (#451)
1 parent f8066f7 commit f83c855

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nimx/private/windows/sdl_window.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ method animationStateChanged*(w: SdlWindow, state: bool) =
107107
let w = cast[SdlWindow](p)
108108
w.runAnimations()
109109
w.drawWindow()
110-
discard iPhoneSetAnimationCallback(w.impl, 0, animationCallback, cast[pointer](w))
110+
discard iPhoneSetAnimationCallback(w.impl, 1, animationCallback, cast[pointer](w))
111111
else:
112112
discard iPhoneSetAnimationCallback(w.impl, 0, nil, nil)
113113

0 commit comments

Comments
 (0)