source/Platform/Win32/Win32Display.cpp: in setSize() add cast to silence compiler warnings.
This commit is contained in:
parent
effc723f54
commit
6f53b0c069
1 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue