27 Jul
2022
27 Jul
'22
8:23 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/win32u/sysparams.c:
if (!user_driver->pUpdateDisplayDevices( &device_manager, TRUE, &ctx )) { + static const DEVMODEW modes[] = + { + { .dmFields = DM_DISPLAYORIENTATION|DM_BITSPERPEL|DM_PELSWIDTH|DM_PELSHEIGHT|DM_DISPLAYFLAGS|DM_DISPLAYFREQUENCY|DM_POSITION,
The DM_POSITION flag is only used for the current mode. For available modes, they have no position obviously. Add a space before and after the |. And is it really necessary to add 6 modes? Not that there is anything wrong with it. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/406#note_5026