Initialize object viewer viewport at correct size

This commit is contained in:
kaetemi 2014-07-29 14:10:40 +02:00
parent 617d1235d1
commit 2b8e006981

View file

@ -677,8 +677,11 @@ bool CObjectViewer::initUI (HWND parent)
_MainFrame->ShowWindow (SW_SHOW);
RECT viewportRect;
GetClientRect(view->m_hWnd, &viewportRect);
// Init NELU
if (!CNELU::init (640, 480, viewport, 32, true, view->m_hWnd, false, _Direct3d))
if (!CNELU::init (viewportRect.right, viewportRect.bottom, viewport, 32, true, view->m_hWnd, false, _Direct3d))
{
return false;
}