3DS: Fix assertion issue in case cursor dimensions are zero

This commit is contained in:
Nitrus 2018-11-20 18:59:56 +01:00 committed by David Turner
parent 92ab8328b1
commit f615b3392b

View File

@ -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);