From 9e40a91b26fd6f4bab59ecd27f8777751c9cc223 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Mon, 17 Dec 2012 18:45:17 +0200 Subject: MOHAWK: Set a 2x2 invisible cursor, instead of a 1x1 This prevents an assert when hiding the mouse cursor while using a 2x scaled mode in Myst --- engines/mohawk/cursors.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp index e73d4ed6a3..7962379a5c 100644 --- a/engines/mohawk/cursors.cpp +++ b/engines/mohawk/cursors.cpp @@ -106,8 +106,8 @@ void MystCursorManager::hideCursor() { void MystCursorManager::setCursor(uint16 id) { // Zero means empty cursor if (id == 0) { - static const byte emptyCursor = 0; - CursorMan.replaceCursor(&emptyCursor, 1, 1, 0, 0, 0); + static const byte emptyCursor[4]; + CursorMan.replaceCursor(&emptyCursor, 2, 2, 0, 0, 0); return; } -- cgit v1.2.3