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
This commit is contained in:
parent
77cec36ad4
commit
05c04bd03e
|
@ -80,7 +80,7 @@ void DllConfig(HWND _hParent)
|
||||||
|
|
||||||
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];
|
char szBuffer[100];
|
||||||
sprintf(szBuffer,"%dx%d", dmi.dmPelsWidth, dmi.dmPelsHeight);
|
sprintf(szBuffer,"%dx%d", dmi.dmPelsWidth, dmi.dmPelsHeight);
|
||||||
|
|
Loading…
Reference in New Issue