Commit 7ba3eca2 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

winex11.drv: Remove unnecessary display mode flags checks.

parent d21da2a6
...@@ -407,22 +407,15 @@ static DEVMODEW *get_full_mode(ULONG_PTR id, DEVMODEW *dev_mode) ...@@ -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); found_mode = (DEVMODEW *)((BYTE *)modes + (sizeof(*modes) + modes[0].dmDriverExtra) * mode_idx);
if (dev_mode->dmFields & DM_BITSPERPEL && if (found_mode->dmBitsPerPel != dev_mode->dmBitsPerPel)
dev_mode->dmBitsPerPel &&
found_mode->dmBitsPerPel != dev_mode->dmBitsPerPel)
continue; continue;
if (dev_mode->dmFields & DM_PELSWIDTH && found_mode->dmPelsWidth != dev_mode->dmPelsWidth) if (found_mode->dmPelsWidth != dev_mode->dmPelsWidth)
continue; continue;
if (dev_mode->dmFields & DM_PELSHEIGHT && found_mode->dmPelsHeight != dev_mode->dmPelsHeight) if (found_mode->dmPelsHeight != dev_mode->dmPelsHeight)
continue; continue;
if (dev_mode->dmFields & DM_DISPLAYFREQUENCY && if (found_mode->dmDisplayFrequency != dev_mode->dmDisplayFrequency)
dev_mode->dmDisplayFrequency &&
found_mode->dmDisplayFrequency &&
dev_mode->dmDisplayFrequency != 1 &&
dev_mode->dmDisplayFrequency != found_mode->dmDisplayFrequency)
continue; continue;
if (dev_mode->dmFields & DM_DISPLAYORIENTATION && if (found_mode->dmDisplayOrientation != dev_mode->dmDisplayOrientation)
found_mode->dmDisplayOrientation != dev_mode->dmDisplayOrientation)
continue; continue;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment