aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/3ds
diff options
context:
space:
mode:
Diffstat (limited to 'backends/platform/3ds')
-rw-r--r--backends/platform/3ds/osystem-graphics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/platform/3ds/osystem-graphics.cpp b/backends/platform/3ds/osystem-graphics.cpp
index ebc1b8c7ed..15fabc7a01 100644
--- a/backends/platform/3ds/osystem-graphics.cpp
+++ b/backends/platform/3ds/osystem-graphics.cpp
@@ -479,7 +479,10 @@ void OSystem_3DS::setMouseCursor(const void *buf, uint w, uint h,
_cursorTexture.create(w, h, _pfGameTexture);
}
- _cursor.copyRectToSurface(buf, w, 0, 0, w, h);
+ if ( w != 0 && h != 0 ) {
+ _cursor.copyRectToSurface(buf, w, 0, 0, w, h);
+ }
+
flushCursor();
warpMouse(_cursorX, _cursorY);