mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 03:47:32 +00:00
3DS: Fix assertion issue in case cursor dimensions are zero
This commit is contained in:
parent
92ab8328b1
commit
f615b3392b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user