18 Aug
2022
18 Aug
'22
3:55 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/win32u/sysparams.c:
set_mode_field( v_refreshW, dmDisplayFrequency, DM_DISPLAYFREQUENCY ); set_mode_field( flagsW, dmDisplayFlags, DM_DISPLAYFLAGS ); set_mode_field( orientationW, dmDisplayOrientation, DM_DISPLAYORIENTATION ); - set_mode_field( fixed_outputW, dmDisplayFixedOutput, DM_DISPLAYFIXEDOUTPUT ); + if (mode->dmFields & DM_DISPLAYFIXEDOUTPUT) set_mode_field( fixed_outputW, dmDisplayFixedOutput, DM_DISPLAYFIXEDOUTPUT );
You can move the flag check inside the macro. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/665#note_6448