3 Apr
2023
3 Apr
'23
5:36 p.m.
Rémi Bernon (@rbernon) commented about dlls/winemac.drv/display.c:
device_manager->add_monitor( &gdi_monitor, param ); }
+ if (macdrv_get_displays(&displays, &display_count)) break; + + /* Get the current mode */ + for (display = displays; display < displays + display_count; display++) + { + if (display->displayID == adapter->id) + { + display_get_current_mode(display, ¤t_mode); + break; + } + } + + macdrv_free_displays(displays);
It doesn't seem very optimal to get the displays every iteration? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2568#note_28726