aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-23 17:10:51 +0200
committerDavid Robillard <d@drobilla.net>2019-07-23 20:28:56 +0200
commitebbf1568cc8fce3b464abf7cf69d7fa6e455928e (patch)
tree468bd305009e198ff0780c5b5ce68d6e50a27e26
parent5797e423e121b9fb49886a53cf4adfe49e391990 (diff)
downloadpugl-ebbf1568cc8fce3b464abf7cf69d7fa6e455928e.tar.gz
pugl-ebbf1568cc8fce3b464abf7cf69d7fa6e455928e.tar.bz2
pugl-ebbf1568cc8fce3b464abf7cf69d7fa6e455928e.zip
Mac: Fix initial view allocation
-rw-r--r--pugl/pugl_osx.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index 268da71..fb45fe1 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -657,9 +657,8 @@ puglCreateWindow(PuglView* view, const char* title)
impl->glview = [PuglOpenGLView alloc];
impl->glview->puglview = view;
- [impl->glview init];
- [impl->glview setFrameSize:NSMakeSize(view->width, view->height)];
+ [impl->glview initWithFrame:NSMakeRect(0, 0, view->width, view->height)];
[impl->glview addConstraint:
puglConstraint(impl->glview, NSLayoutAttributeWidth, view->min_width)];
[impl->glview addConstraint: