I was asked to post the changes for this here !!!
The problem is that if you create an Irrlicht device inside a win32 window (like tutorial #14-Win32Window), the resolution from the creation parameter does not have any affect !!!
No matter what resolution you choose, Irrlicht takes the desktop resolution !!!
The problem is within the constructor from the CIrrDeviceWin32.cpp file...
Open this file and search for this code (about line 355):
Code: Select all
// attach external window
if (externalWindow)
{
HWnd = externalWindow;
RECT r;
GetWindowRect(HWnd, &r);
windowSize.Width = r.right - r.left;
windowSize.Height = r.bottom - r.top;
fullscreen = false;
ExternalWindow = true;
}Code: Select all
// attach external window
if (externalWindow)
{
HWnd = externalWindow;
// RECT r;
// GetWindowRect(HWnd, &r);
// windowSize.Width = r.right - r.left;
// windowSize.Height = r.bottom - r.top;
fullscreen = false;
ExternalWindow = true;
}CU, Acki
