From 950c3109bcd8a69d77d22c316cfc6ab34abf5f22 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 1 Aug 2016 03:22:59 +0300 Subject: Extend windows unit tests with drawing. --- src/input/touch/touchmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/input/touch') diff --git a/src/input/touch/touchmanager.cpp b/src/input/touch/touchmanager.cpp index 29e2b3cf5..be6dd072d 100644 --- a/src/input/touch/touchmanager.cpp +++ b/src/input/touch/touchmanager.cpp @@ -53,7 +53,7 @@ TouchManager::TouchManager() : mKeyboard(nullptr), mPad(nullptr), mObjects(), - mVertexes(new ImageCollection), + mVertexes(nullptr), mRedraw(true), mShowJoystick(false), mShowButtons(false), @@ -86,6 +86,8 @@ void TouchManager::shutdown() restrict2 void TouchManager::init() restrict2 { + mVertexes = new ImageCollection; + config.addListener("showScreenJoystick", this); config.addListener("showScreenButtons", this); config.addListener("showScreenKeyboard", this); -- cgit v1.2.3-70-g09d2