From 29ba1095370abcdc341086b258bfe046f50100fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 8 Apr 2020 13:41:35 +0200 Subject: Mac: Use high-resolution backing surfaces --- pugl/detail/mac_gl.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pugl/detail/mac_gl.m') diff --git a/pugl/detail/mac_gl.m b/pugl/detail/mac_gl.m index eda4371..3d55056 100644 --- a/pugl/detail/mac_gl.m +++ b/pugl/detail/mac_gl.m @@ -69,6 +69,8 @@ self = [super initWithFrame:frame]; } + [self setWantsBestResolutionOpenGLSurface:YES]; + if (self) { [[self openGLContext] makeCurrentContext]; [self reshape]; @@ -97,11 +99,9 @@ puglMacGlCreate(PuglView* view) { PuglInternals* impl = view->impl; PuglOpenGLView* drawView = [PuglOpenGLView alloc]; - const NSRect rect = NSMakeRect( - 0, 0, view->frame.width, view->frame.height); drawView->puglview = view; - [drawView initWithFrame:rect]; + [drawView initWithFrame:[impl->wrapperView bounds]]; if (view->hints[PUGL_RESIZABLE]) { [drawView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; } else { -- cgit v1.2.1