aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
Diffstat (limited to 'pugl/pugl_osx.m')
-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: