mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 22:31:27 +00:00
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: Stefan Dösinger <stefan@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e97a2c4c0f
commit
004b1179e9
|
@ -685,6 +685,7 @@ - (void) setRetinaMode:(int)mode
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue