mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-11 01:40:13 +00:00
Initialize object viewer viewport at correct size
This commit is contained in:
parent
661d5fd274
commit
e854571ba5
1 changed files with 4 additions and 1 deletions
|
@ -676,9 +676,12 @@ bool CObjectViewer::initUI (HWND parent)
|
||||||
view->MainFrame = _MainFrame;
|
view->MainFrame = _MainFrame;
|
||||||
|
|
||||||
_MainFrame->ShowWindow (SW_SHOW);
|
_MainFrame->ShowWindow (SW_SHOW);
|
||||||
|
|
||||||
|
RECT viewportRect;
|
||||||
|
GetClientRect(view->m_hWnd, &viewportRect);
|
||||||
|
|
||||||
// Init NELU
|
// 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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue