From ebbf1568cc8fce3b464abf7cf69d7fa6e455928e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 23 Jul 2019 17:10:51 +0200 Subject: Mac: Fix initial view allocation --- pugl/pugl_osx.m | 3 +-- 1 file changed, 1 insertion(+), 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: -- cgit v1.2.1