Improved Win32 code

Former-commit-id: cfaecc7d8df56fa4cb2a27570531ffbce3fdfe87
This commit is contained in:
Lynix
2014-12-17 13:52:40 +01:00
parent 20607238df
commit 02643f9442
3 changed files with 5 additions and 5 deletions

View File

@@ -79,7 +79,7 @@ m_scrolling(0)
{
}
bool NzWindowImpl::Create(NzVideoMode mode, const NzString& title, nzUInt32 style)
bool NzWindowImpl::Create(const NzVideoMode& mode, const NzString& title, nzUInt32 style)
{
bool fullscreen = (style & nzWindowStyle_Fullscreen) != 0;
DWORD win32Style, win32StyleEx;
@@ -183,7 +183,7 @@ bool NzWindowImpl::Create(NzVideoMode mode, const NzString& title, nzUInt32 styl
GetWindowRect(m_handle, &windowRect);
m_position.Set(windowRect.left, windowRect.top);
m_size.Set(clientRect.right-clientRect.left, clientRect.bottom-clientRect.top);
m_size.Set(clientRect.right - clientRect.left, clientRect.bottom - clientRect.top);
return true;
}