• Ken Thomases's avatar
    winemac: Fix how the user's default display mode is determined. · dbb0bacf
    Ken Thomases authored
    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: 's avatarKen Thomases <ken@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    dbb0bacf
Name
Last commit
Last update
..
.gitattributes Loading commit data...
Makefile.in Loading commit data...
clipboard.c Loading commit data...
cocoa_app.h Loading commit data...
cocoa_app.m Loading commit data...
cocoa_clipboard.m Loading commit data...
cocoa_display.m Loading commit data...
cocoa_event.h Loading commit data...
cocoa_event.m Loading commit data...
cocoa_main.m Loading commit data...
cocoa_opengl.h Loading commit data...
cocoa_opengl.m Loading commit data...
cocoa_status_item.m Loading commit data...
cocoa_window.h Loading commit data...
cocoa_window.m Loading commit data...
display.c Loading commit data...
dragdrop.c Loading commit data...
event.c Loading commit data...
gdi.c Loading commit data...
image.c Loading commit data...
ime.c Loading commit data...
keyboard.c Loading commit data...
macdrv.h Loading commit data...
macdrv_cocoa.h Loading commit data...
macdrv_main.c Loading commit data...
mouse.c Loading commit data...
opengl.c Loading commit data...
surface.c Loading commit data...
systray.c Loading commit data...
window.c Loading commit data...
winemac.drv.spec Loading commit data...