We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cede99 commit 6056f23Copy full SHA for 6056f23
examples/pysdl2.py
@@ -169,7 +169,7 @@ def main():
169
logging.debug("SDL2 initialised")
170
# Create the window
171
window = sdl2.video.SDL_CreateWindow(
172
- 'cefpython3 SDL2 Demo',
+ b'cefpython3 SDL2 Demo',
173
sdl2.video.SDL_WINDOWPOS_UNDEFINED,
174
175
width,
@@ -382,7 +382,7 @@ def main():
382
# regulate frame rate
383
if sdl2.timer.SDL_GetTicks() - startTime < 1000.0 / frameRate:
384
sdl2.timer.SDL_Delay(
385
- (1000 / frameRate) - (sdl2.timer.SDL_GetTicks() - startTime)
+ (1000 // frameRate) - (sdl2.timer.SDL_GetTicks() - startTime)
386
)
387
# User exited
388
exit_app()
0 commit comments