diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/platform/android/gfx.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 31e8c4be18..e0994b1d60 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -485,6 +485,9 @@ void OSystem_Android::setMouseCursor(const byte *buf, uint w, uint h, palette = _mouse_texture->palette(); palette[keycolor * 4 + 3] = 0x00; + if (w == 0 || h == 0) + return; + _mouse_texture->updateBuffer(0, 0, w, h, buf, w); _mouse_hotspot = Common::Point(hotspotX, hotspotY); |