summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers
diff options
context:
space:
mode:
authorManel Caro <mcaro@iatec.biz>2020-10-05 11:44:43 +0200
committerManel Caro <mcaro@iatec.biz>2020-10-05 11:44:43 +0200
commit33fdf3f804a171b2d9c70ba39a7bad11658c5b64 (patch)
tree41d7d87755b172c4ae75cf71801f3b9b3a5cfbf2 /test-cli/test/helpers
parente7631181c08c38c196558fc79b648d78ccaadcc8 (diff)
downloadboard-33fdf3f804a171b2d9c70ba39a7bad11658c5b64.zip
board-33fdf3f804a171b2d9c70ba39a7bad11658c5b64.tar.gz
board-33fdf3f804a171b2d9c70ba39a7bad11658c5b64.tar.bz2
Add qvideo variables
Diffstat (limited to 'test-cli/test/helpers')
-rw-r--r--test-cli/test/helpers/sdl.py10
1 files changed, 5 insertions, 5 deletions
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)