Sweden-Number/dlls/winemac.drv
Ken Thomases dbb0bacf67 winemac: Fix how the user's default display mode is determined.
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>
2015-10-27 21:43:31 +09:00
..
.gitattributes
Makefile.in
clipboard.c
cocoa_app.h
cocoa_app.m winemac: Tell Wine when Cocoa brought a clicked window forward even if it sent the click event. 2015-08-13 15:04:35 +09:00
cocoa_clipboard.m winemac: Remove JPEG 2000 from the bitmap formats that other bitmap formats can be converted to. 2015-10-08 13:07:52 +09:00
cocoa_display.m
cocoa_event.h
cocoa_event.m
cocoa_main.m
cocoa_opengl.h
cocoa_opengl.m winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
cocoa_status_item.m
cocoa_window.h winemac: Use a snapshot of an owned window when a zero-sized owner window is minimized. 2015-10-23 19:20:00 +09:00
cocoa_window.m winemac: Use a snapshot of an owned window when a zero-sized owner window is minimized. 2015-10-23 19:20:00 +09:00
display.c winemac: Fix how the user's default display mode is determined. 2015-10-27 21:43:31 +09:00
dragdrop.c
event.c winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
gdi.c gdi32: Added GetFontRealizationInfo() export. 2015-09-01 19:28:16 +09:00
image.c
ime.c
keyboard.c
macdrv.h winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
macdrv_cocoa.h winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
macdrv_main.c winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
mouse.c
opengl.c winemac: Add a new registry setting, OpenGLSurfaceMode, to control how GL surfaces relate to the window. 2015-09-15 16:59:03 +09:00
surface.c
systray.c
window.c winemac: Queue an event to reassert the WinAPI window position before Cocoa adjusts its position for a display change. 2015-10-06 17:21:01 +09:00
winemac.drv.spec