Mercurial > touhou
comparison scripts/pytouhou @ 596:ab131d04987d
Fix a regression introduced in the previous commit when the interface has a different resolution than 640×480 and framebuffer_blit is enabled.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sat, 25 Oct 2014 18:49:41 +0200 |
parents | e15672733c93 |
children | 244c99c568c8 |
comparison
equal
deleted
inserted
replaced
595:b7b4a234bf70 | 596:ab131d04987d |
---|---|
278 with open(save_filename, 'wb+') as file: | 278 with open(save_filename, 'wb+') as file: |
279 save_replay.write(file) | 279 save_replay.write(file) |
280 | 280 |
281 | 281 |
282 with SDL(sound=args.no_sound): | 282 with SDL(sound=args.no_sound): |
283 window = Window(backend, fps_limit=args.fps_limit, | 283 window = Window(backend, Interface.width, Interface.height, |
284 frameskip=args.frameskip) | 284 fps_limit=args.fps_limit, frameskip=args.frameskip) |
285 | 285 |
286 main(window, args.path, tuple(args.data), args.stage, args.rank, | 286 main(window, args.path, tuple(args.data), args.stage, args.rank, |
287 args.character, args.replay, args.save_replay, args.skip_replay, | 287 args.character, args.replay, args.save_replay, args.skip_replay, |
288 args.boss_rush, args.debug, args.no_background, args.no_particles, | 288 args.boss_rush, args.debug, args.no_background, args.no_particles, |
289 args.hints, args.port, args.remote, args.friendly_fire) | 289 args.hints, args.port, args.remote, args.friendly_fire) |