mirror of
https://github.com/reactos/wine.git
synced 2025-02-26 15:57:20 +00:00
wined3d: Fix mode comparison in wined3d_set_adapter_display_mode.
This commit is contained in:
parent
5ff44e5aef
commit
a835ae8643
@ -3325,7 +3325,7 @@ HRESULT CDECL wined3d_set_adapter_display_mode(struct wined3d *wined3d,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if(!EnumDisplaySettingsW(adapter->DeviceName, ENUM_REGISTRY_SETTINGS, &new_mode))
|
if (!EnumDisplaySettingsW(adapter->DeviceName, ENUM_REGISTRY_SETTINGS, &new_mode))
|
||||||
{
|
{
|
||||||
ERR("Failed to read mode from registry.\n");
|
ERR("Failed to read mode from registry.\n");
|
||||||
return WINED3DERR_NOTAVAILABLE;
|
return WINED3DERR_NOTAVAILABLE;
|
||||||
@ -3344,7 +3344,7 @@ HRESULT CDECL wined3d_set_adapter_display_mode(struct wined3d *wined3d,
|
|||||||
&& (current_mode.dmDisplayFrequency == new_mode.dmDisplayFrequency
|
&& (current_mode.dmDisplayFrequency == new_mode.dmDisplayFrequency
|
||||||
|| !(new_mode.dmFields & DM_DISPLAYFREQUENCY))
|
|| !(new_mode.dmFields & DM_DISPLAYFREQUENCY))
|
||||||
&& (current_mode.u2.dmDisplayFlags == new_mode.u2.dmDisplayFlags
|
&& (current_mode.u2.dmDisplayFlags == new_mode.u2.dmDisplayFlags
|
||||||
|| new_mode.dmFields & DM_DISPLAYFLAGS))
|
|| !(new_mode.dmFields & DM_DISPLAYFLAGS)))
|
||||||
{
|
{
|
||||||
TRACE("Skipping redundant mode setting call.\n");
|
TRACE("Skipping redundant mode setting call.\n");
|
||||||
return WINED3D_OK;
|
return WINED3D_OK;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user