# HG changeset patch # User Emmanuel Gil Peyrot # Date 1612907418 -3600 # Node ID 468dab1dd683ccf7a85c5d81a53a4ed67de615cf # Parent cad9e422b18fc17a83763451b97463bc0a687cde Python: Fix video argument (thanks Doomfan!) diff --git a/pytouhou/lib/sdl.pyx b/pytouhou/lib/sdl.pyx --- a/pytouhou/lib/sdl.pyx +++ b/pytouhou/lib/sdl.pyx @@ -64,13 +64,14 @@ class SDLError(gui.Error): class SDL: def __init__(self, *, video=True, sound=True): self.sound = sound + self.video = video def __enter__(self): global keyboard_state IF UNAME_SYSNAME == "Windows": SDL_SetMainReady() - init(SDL_INIT_VIDEO if video else 0) + init(SDL_INIT_VIDEO if self.video else 0) img_init(IMG_INIT_PNG) ttf_init()