mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 06:08:42 +00:00
Fixed: Wrong index for video modes comparison (nFoundMode was an index in strings not CMode list, now renamed to nFoundStringMode)
This commit is contained in:
parent
b20b11d9aa
commit
e791f6dfb2
1 changed files with 7 additions and 3 deletions
|
@ -1430,15 +1430,19 @@ bool getRyzomModes(std::vector<NL3D::UDriver::CMode> &videoModes, std::vector<st
|
|||
|
||||
if ((videoModes[i].Width <= ClientCfg.Width) && (videoModes[i].Height <= ClientCfg.Height))
|
||||
{
|
||||
if (nFoundMode == -1)
|
||||
if (nFoundStringMode == -1)
|
||||
{
|
||||
nFoundMode = j;
|
||||
nFoundStringMode = j;
|
||||
nFoundMode = i;
|
||||
}
|
||||
else
|
||||
{
|
||||
if ((videoModes[i].Width >= videoModes[nFoundMode].Width) &&
|
||||
(videoModes[i].Height >= videoModes[nFoundMode].Height))
|
||||
nFoundMode = j;
|
||||
{
|
||||
nFoundStringMode = j;
|
||||
nFoundMode = i;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue