Mercurial > touhou
diff scripts/pytouhou @ 754:a6875f90c141
Python: Only init SDL2 video if using SDL2 frontend.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 04 Jan 2021 20:39:30 +0100 |
parents | 4fa0a8e7d941 |
children |
line wrap: on
line diff
--- a/scripts/pytouhou +++ b/scripts/pytouhou @@ -286,7 +286,8 @@ def main(window, path, data, stage_num, save_replay.write(file) -with SDL(sound=args.no_sound): +is_sdl = (args.frontend == 'sdl') +with SDL(video=is_sdl, sound=args.no_sound): window = Window(backend, Interface.width, Interface.height, fps_limit=args.fps_limit, frameskip=args.frameskip)