Commit 09bf8809 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winemac: Transform the process to a GUI app on an attempt to change the display mode.

It had only been done when a window is shown. Some games change the display mode before showing their first window. Following Mac conventions, the Mac driver does not apply display mode changes when it's not the active GUI app. If such a game were to change the mode and then query display-mode-related info, it would get info for the original mode, not the requested mode. Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 9ffc6e60
......@@ -843,7 +843,6 @@ static NSString* WineLocalizedString(unsigned int stringID)
}
else
{
BOOL active = [NSApp isActive];
CGDisplayModeRef currentMode;
NSArray* modes;
......@@ -866,6 +865,10 @@ static NSString* WineLocalizedString(unsigned int stringID)
if (!modes.count)
return FALSE;
[self transformProcessToForeground];
BOOL active = [NSApp isActive];
if ([originalDisplayModes count] || displaysCapturedForFullscreen ||
!active || CGCaptureAllDisplays() == CGDisplayNoErr)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment