class Menu:
- def __init__(self, fsm, lang_mgr, opt_file, music, pipeline, scenes):
+ def __init__(self, fsm, lang_mgr, opt_file, music, pipeline, scenes, fun_test):
self._fsm = fsm
self._lang_mgr = lang_mgr
self._opt_file = opt_file
self._music = music
self._pipeline = pipeline
self._scenes = scenes
+ self._fun_test = fun_test
self._cursor = MouseCursor(
'assets/images/buttons/arrowUpLeft.dds', (.04, 1, .04), (.5, .5, .5, 1),
(.01, .01))
def on_fullscreen(self, arg):
props = WindowProperties()
props.set_fullscreen(arg)
- base.win.request_properties(props)
+ if not self._fun_test:
+ base.win.request_properties(props)
+ # if we actually switch to fullscreen during the tests then
+ # exwm inside qemu can't restore the correct resolution
+ # i may re-enable this if/when i run the tests onto a
+ # physical machine
self._opt_file['settings']['fullscreen'] = int(arg)
self._opt_file.store()