Commit 7566dbad authored by hybrid's avatar hybrid

This time it's compiling properly. Was a copy-paste error from XVidMode to XRandR.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@981 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4442bc64
......@@ -241,9 +241,9 @@ bool CIrrDeviceLinux::createWindow(const core::dimension2d<s32>& windowSize,
modes[oldRandrMode].width, modes[oldRandrMode].height));
for (s32 i = 0; i<modeCount; ++i)
{
if (bestMode==-1 && modes[i].hdisplay >= Width && modes[i].vdisplay >= Height)
if (bestMode==-1 && (u32)modes[i].width >= Width && (u32)modes[i].height >= Height)
bestMode = i;
else if (bestMode!=-1 && modes[i].hdisplay >= Width && modes[i].vdisplay >= Height && modes[i].hdisplay < modes[bestMode].hdisplay && modes[i].vdisplay < modes[bestMode].vdisplay)
else if (bestMode!=-1 && (u32)modes[i].width >= Width && (u32)modes[i].height >= Height && modes[i].width < modes[bestMode].width && modes[i].height < modes[bestMode].height)
bestMode = i;
VideoModeList.addMode(core::dimension2d<s32>(
modes[i].width, modes[i].height), defaultDepth);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment