From 3fef28db198e8d1397a9aed3238b1ebf8c7352b1 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Sat, 16 Jan 2016 10:59:38 -0800 Subject: [PATCH] Qt: Fix remaining write to drawContext --- src/platform/qt/GameController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index 7588db1a5..30d93dd6c 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -339,7 +339,7 @@ void GameController::openGame(bool biosOnly) { } m_inputController->recalibrateAxes(); - memset(m_drawContext, 0xF8, 1024 * VIDEO_HORIZONTAL_PIXELS); + memset(m_drawContext, 0xF8, VIDEO_VERTICAL_PIXELS * VIDEO_HORIZONTAL_PIXELS * 4); if (!GBAThreadStart(&m_threadContext)) { m_gameOpen = false;