I have, or rather SuperTuxKart has, got a problem with Irrlicht (current trunk version). I volunteered to ask here about it to unburden STK's developers a bit.
Okay, here we go: I'm on Linux (64bit) and have a two-screen setup. My main screen has got a resolution of 1920x1080px and my second screen one of 1280x1024.
SuperTuxKart uses the following code to discover possible screen sizes:
Code: Select all
...
m_device = createDevice(video::EDT_NULL);
video::IVideoModeList* modes = m_device->getVideoModeList();
const int count = modes->getVideoModeCount();
for(int i=0; i<count; i++)
{
// only consider 32-bit resolutions for now
if (modes->getVideoModeDepth(i) >= 24)
{
const int w = modes->getVideoModeResolution(i).Width;
const int h = modes->getVideoModeResolution(i).Height;
if (h < MIN_SUPPORTED_HEIGHT || w < MIN_SUPPORTED_WIDTH)
continue;
VideoMode mode;
mode.width = w;
mode.height = h;
m_modes.push_back( mode );
}
}
m_device->closeDevice();
...
Is anything wrong with STK's code or is this a Irrlicht bug?
Hopefully this is in the right section. If not, please move it.
Crend