From 05c04bd03ee76f02ea1e1657d1ecf8558f762e8b Mon Sep 17 00:00:00 2001 From: hrydgard Date: Thu, 21 Aug 2008 00:05:48 +0000 Subject: [PATCH] fix bug that prevented ogl plugin from recognizing many resolutions, like my favorite 1920x1200 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@252 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoOGL/Src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp index 297893b119..2dc74d00f4 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/main.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/main.cpp @@ -78,9 +78,9 @@ void DllConfig(HWND _hParent) ZeroMemory(&dmi, sizeof(dmi)); dmi.dmSize = sizeof(dmi); - while(EnumDisplaySettings(NULL, iModeNum++, &dmi) != 0) + while (EnumDisplaySettings(NULL, iModeNum++, &dmi) != 0) { - if((x != dmi.dmPelsWidth && y != dmi.dmPelsHeight) && (dmi.dmPelsWidth > x)) + if((x != dmi.dmPelsWidth || y != dmi.dmPelsHeight) && (dmi.dmPelsWidth >= x)) { char szBuffer[100]; sprintf(szBuffer,"%dx%d", dmi.dmPelsWidth, dmi.dmPelsHeight);