OPENGLSDL: Fix signed/unsigned comparison

This commit is contained in:
Colin Snover 2016-11-18 12:13:58 -06:00
parent 22c2f39c00
commit e49cf11275

View file

@ -357,7 +357,7 @@ void OpenGLSdlGraphicsManager::notifyResize(const uint width, const uint height)
// event is processed after recreating the window at the new resolution. // event is processed after recreating the window at the new resolution.
int currentWidth, currentHeight; int currentWidth, currentHeight;
getWindowDimensions(&currentWidth, &currentHeight); getWindowDimensions(&currentWidth, &currentHeight);
if (width != currentWidth || height != currentHeight) if (width != (uint)currentWidth || height != (uint)currentHeight)
return; return;
setActualScreenSize(width, height); setActualScreenSize(width, height);
_eventSource->resetKeyboardEmulation(width - 1, height - 1); _eventSource->resetKeyboardEmulation(width - 1, height - 1);