diff options
author | David Robillard <d@drobilla.net> | 2020-04-08 13:41:35 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-04-08 13:41:35 +0200 |
commit | 29ba1095370abcdc341086b258bfe046f50100fc (patch) | |
tree | ecd130c3d3f5755cdd083c66e01c483238cd5404 /pugl/detail/mac_gl.m | |
parent | 53d8fe0c19408a54165f6422319be8139758a5b2 (diff) | |
download | pugl-29ba1095370abcdc341086b258bfe046f50100fc.tar.gz pugl-29ba1095370abcdc341086b258bfe046f50100fc.tar.bz2 pugl-29ba1095370abcdc341086b258bfe046f50100fc.zip |
Mac: Use high-resolution backing surfaces
Diffstat (limited to 'pugl/detail/mac_gl.m')
-rw-r--r-- | pugl/detail/mac_gl.m | 6 |
1 files changed, 3 insertions, 3 deletions
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 { |