winex11.drv: Remove unnecessary display mode flags checks.

This commit is contained in:
Rémi Bernon 2022-08-04 10:52:43 +02:00 committed by Alexandre Julliard
parent d21da2a655
commit 7ba3eca21b

View file

@ -407,22 +407,15 @@ static DEVMODEW *get_full_mode(ULONG_PTR id, DEVMODEW *dev_mode)
{
found_mode = (DEVMODEW *)((BYTE *)modes + (sizeof(*modes) + modes[0].dmDriverExtra) * mode_idx);
if (dev_mode->dmFields & DM_BITSPERPEL &&
dev_mode->dmBitsPerPel &&
found_mode->dmBitsPerPel != dev_mode->dmBitsPerPel)
if (found_mode->dmBitsPerPel != dev_mode->dmBitsPerPel)
continue;
if (dev_mode->dmFields & DM_PELSWIDTH && found_mode->dmPelsWidth != dev_mode->dmPelsWidth)
if (found_mode->dmPelsWidth != dev_mode->dmPelsWidth)
continue;
if (dev_mode->dmFields & DM_PELSHEIGHT && found_mode->dmPelsHeight != dev_mode->dmPelsHeight)
if (found_mode->dmPelsHeight != dev_mode->dmPelsHeight)
continue;
if (dev_mode->dmFields & DM_DISPLAYFREQUENCY &&
dev_mode->dmDisplayFrequency &&
found_mode->dmDisplayFrequency &&
dev_mode->dmDisplayFrequency != 1 &&
dev_mode->dmDisplayFrequency != found_mode->dmDisplayFrequency)
if (found_mode->dmDisplayFrequency != dev_mode->dmDisplayFrequency)
continue;
if (dev_mode->dmFields & DM_DISPLAYORIENTATION &&
found_mode->dmDisplayOrientation != dev_mode->dmDisplayOrientation)
if (found_mode->dmDisplayOrientation != dev_mode->dmDisplayOrientation)
continue;
break;