1
0
Fork 0

source/Platform/Win32/Win32Display.cpp: in setSize() add cast to silence compiler warnings.

This commit is contained in:
Henrik Hautakoski 2019-12-29 22:16:54 +01:00
parent effc723f54
commit 6f53b0c069
No known key found for this signature in database
GPG key ID: 96765B12FEAC4745

View file

@ -86,7 +86,7 @@ bool Win32Display::isValid()
void Win32Display::setSize(unsigned int width, unsigned int height) void Win32Display::setSize(unsigned int width, unsigned int height)
{ {
int w, h; int w, h;
RECT rect = {0, 0, width, height}; RECT rect = {0, 0, (LONG) width, (LONG) height};
AdjustWindowRect(&rect, GetWindowLong(m_handle, GWL_STYLE), false); AdjustWindowRect(&rect, GetWindowLong(m_handle, GWL_STYLE), false);
w = rect.right - rect.left; w = rect.right - rect.left;