summaryrefslogtreecommitdiff
path: root/test-cli/test/helpers
diff options
context:
space:
mode:
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)