minor configuration update

This commit is contained in:
turanszkij
2016-05-29 01:16:59 +02:00
parent a1e2a66fb7
commit dae6cb1d0d
+7 -4
View File
@@ -191,10 +191,13 @@ bool MainComponent::setWindow(wiWindowRegistration::window_type window, HINSTANC
this->window = window;
this->instance = hInst;
RECT rect = RECT();
GetClientRect(window, &rect);
screenW = rect.right - rect.left;
screenH = rect.bottom - rect.top;
if (screenW == 0 || screenH == 0)
{
RECT rect = RECT();
GetClientRect(window, &rect);
screenW = rect.right - rect.left;
screenH = rect.bottom - rect.top;
}
wiRenderer::InitDevice(window, fullscreen);