From 69db8b9b3385317c8c2870e7c19fc1608efc29ea Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Wed, 25 Aug 2021 01:18:39 +0100 Subject: [PATCH] DS: Fix compiler warning --- backends/platform/ds/ds-graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/platform/ds/ds-graphics.cpp b/backends/platform/ds/ds-graphics.cpp index 1e432a5b014..61158226986 100644 --- a/backends/platform/ds/ds-graphics.cpp +++ b/backends/platform/ds/ds-graphics.cpp @@ -458,7 +458,7 @@ void OSystem_DS::setMouseCursor(const void *buf, uint w, uint h, int hotspotX, i return; Graphics::PixelFormat actualFormat = format ? *format : _pfCLUT8; - if (_cursor.w != w || _cursor.h != h || _cursor.format != actualFormat) + if (_cursor.w != (int16)w || _cursor.h != (int16)h || _cursor.format != actualFormat) _cursor.create(w, h, actualFormat); _cursor.copyRectToSurface(buf, w * actualFormat.bytesPerPixel, 0, 0, w, h); _cursorHotX = hotspotX;