diff options
author | Nitrus | 2018-11-20 18:59:56 +0100 |
---|---|---|
committer | David Turner | 2018-11-21 07:54:49 +0000 |
commit | f615b3392bf4ffcae33c9d5c18904a867512b2f3 (patch) | |
tree | 33804a1019434a0d9bf244dd2b2074b0a610ff6b /backends/platform/3ds | |
parent | 92ab8328b19a3a75deedc9a088d609dd77b72b97 (diff) | |
download | scummvm-rg350-f615b3392bf4ffcae33c9d5c18904a867512b2f3.tar.gz scummvm-rg350-f615b3392bf4ffcae33c9d5c18904a867512b2f3.tar.bz2 scummvm-rg350-f615b3392bf4ffcae33c9d5c18904a867512b2f3.zip |
3DS: Fix assertion issue in case cursor dimensions are zero
Diffstat (limited to 'backends/platform/3ds')
-rw-r--r-- | backends/platform/3ds/osystem-graphics.cpp | 5 |
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); |