mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 10:06:42 +00:00
remove double entries
This commit is contained in:
parent
14d074e3e7
commit
bb39a85f16
1 changed files with 13 additions and 0 deletions
|
@ -205,6 +205,19 @@ bool GraphicsPage::setupSDLWordaround() {
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isDouble = false;
|
||||||
|
for (std::vector<VideoMode>::iterator it = mVideoModes.begin(); it != mVideoModes.end(); it++)
|
||||||
|
{
|
||||||
|
if ((*it).w == mode.w && (*it).h == mode.h && (*it).screen == displayIndex)
|
||||||
|
{
|
||||||
|
isDouble = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (isDouble)
|
||||||
|
continue;
|
||||||
|
|
||||||
VideoMode vmode;
|
VideoMode vmode;
|
||||||
vmode.w = mode.w;
|
vmode.w = mode.w;
|
||||||
vmode.h = mode.h;
|
vmode.h = mode.h;
|
||||||
|
|
Loading…
Reference in a new issue