dbb0bacf67
The code had been checking the kDisplayModeDefaultFlag in the mode's IOFlags, but that doesn't do what I thought. That indicates which mode the driver considers to be the default for the hardware. It turns out there's no way to query the user's default mode. So, at the first opportunity during a given Wine session, the Mac driver queries the current display mode and assumes that's the user's default mode. It records that in a volatile registry key for use by subsequent processes during that same session. This doesn't use the existing registry key under HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Video that records the mode when CDS_UPDATEREGISTRY is used with ChangeDisplaySettingsEx() -- which explorer.exe does during start-up -- because a) that doesn't support the distinction between pixel size and point size for Retina modes, and b) in theory, apps could overwrite that. Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org> |
||
---|---|---|
.. | ||
.gitattributes | ||
Makefile.in | ||
clipboard.c | ||
cocoa_app.h | ||
cocoa_app.m | ||
cocoa_clipboard.m | ||
cocoa_display.m | ||
cocoa_event.h | ||
cocoa_event.m | ||
cocoa_main.m | ||
cocoa_opengl.h | ||
cocoa_opengl.m | ||
cocoa_status_item.m | ||
cocoa_window.h | ||
cocoa_window.m | ||
display.c | ||
dragdrop.c | ||
event.c | ||
gdi.c | ||
image.c | ||
ime.c | ||
keyboard.c | ||
macdrv.h | ||
macdrv_cocoa.h | ||
macdrv_main.c | ||
mouse.c | ||
opengl.c | ||
surface.c | ||
systray.c | ||
window.c | ||
winemac.drv.spec |