aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/mac_gl.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-04-08 13:41:35 +0200
committerDavid Robillard <d@drobilla.net>2020-04-08 13:41:35 +0200
commit29ba1095370abcdc341086b258bfe046f50100fc (patch)
treeecd130c3d3f5755cdd083c66e01c483238cd5404 /pugl/detail/mac_gl.m
parent53d8fe0c19408a54165f6422319be8139758a5b2 (diff)
downloadpugl-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.m6
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 {