It is in file "CIrrDeviceWin32.cpp" at line 376.
Code: Select all
else if (CreationParams.WindowId)
{
// attach external window
HWnd = static_cast<HWND>(CreationParams.WindowId);
RECT r;
GetWindowRect(HWnd, &r);
CreationParams.WindowSize.Width = r.right - r.left;
CreationParams.WindowSize.Height = r.bottom - r.top;
CreationParams.Fullscreen = false;
ExternalWindow = true;
}
When I changed it and recompiled Irrlicht.dll, my program worked fine, before that it was rendering things slightly off, so it is definitely not my code.