28 Jul
2022
28 Jul
'22
10:34 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/winemac.drv/display.c:
- } - - pthread_mutex_unlock(&modes_mutex); - } + return FALSE;
- if (!display_mode) - goto failed; + TRACE("mode %d (current) -- getting current mode\n", mode);
/* We currently only report modes for the primary display, so it's at (0, 0). */ devmode->dmPosition.x = 0; devmode->dmPosition.y = 0; devmode->dmFields |= DM_POSITION;
+ display_mode = CGDisplayCopyDisplayMode(displays[0].displayID); display_mode should be released with CGDisplayModeRelease when you're done using it.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/551#note_5243