From 33fdf3f804a171b2d9c70ba39a7bad11658c5b64 Mon Sep 17 00:00:00 2001 From: Manel Caro Date: Mon, 5 Oct 2020 11:44:43 +0200 Subject: Add qvideo variables --- test-cli/test/helpers/sdl.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test-cli/test') diff --git a/test-cli/test/helpers/sdl.py b/test-cli/test/helpers/sdl.py index 2abb6ee..8131a53 100644 --- a/test-cli/test/helpers/sdl.py +++ b/test-cli/test/helpers/sdl.py @@ -14,15 +14,15 @@ Colors = { class SDL2(object): __resources = None - __w = 1024 - __h = 768 + __w = 1280 + __h = 720 __winName = "noname" __window = None __factory = None __renderer = None __srender = None - def __init__(self): + def __init__(self, driver, display, w, h): os.environ['SDL_VIDEODRIVER'] = "x11" os.environ['DISPLAY'] = ":0" # self.__resources = sdl2.ext.Resources(parent.getAppPath(), 'files') @@ -77,8 +77,8 @@ class SDL2(object): class SDL2_Test(object): __sdl2 = None - def __init__(self): - self.__sdl2 = SDL2() + def __init__(self, driver, display, w, h): + self.__sdl2 = SDL2(driver, display, w, h) def Clear(self): self.__sdl2.fillbgColor('black', True) -- cgit v1.1