Commit 004b1179 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

winemac.drv: Set view.WantsBestResolutionOpenGLSurface.

This used to default to false before Catalina, and it still does so when the application is built with XCode 10 or earlier. When building with XCode 11 or later Catalina and newer will create a high DPI GL view even if the window is low dpi. Because we don't adjust glViewport parameters (and glDrawPixels, etc) we render only to the lower left quadrant. Signed-off-by: 's avatarStefan Dösinger <stefan@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent e97a2c4c
......@@ -685,6 +685,7 @@ static CVReturn WineDisplayLinkCallback(CVDisplayLinkRef displayLink, const CVTi
frame.size.width *= scale;
frame.size.height *= scale;
[self setFrame:frame];
[self setWantsBestResolutionOpenGLSurface:mode];
[self updateGLContexts];
[super setRetinaMode:mode];
......@@ -3575,6 +3576,7 @@ macdrv_view macdrv_create_view(CGRect rect)
[view setAutoresizesSubviews:NO];
[view setAutoresizingMask:NSViewNotSizable];
[view setHidden:YES];
[view setWantsBestResolutionOpenGLSurface:retina_on];
[nc addObserver:view
selector:@selector(updateGLContexts)
name:NSViewGlobalFrameDidChangeNotification
......
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