getScreenSize() is expected to return a value of a window's client area.
But, Only when using the external window , getScreenSize() is not that.
because GetWindowRect() is used.
GetClientRect() is correctly.
irrlicht-1.8.1/source/Irrlicht/CIrrDeviceWin32.cpp
line1010-
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;
}