From b27ea2bec1a8496ab9afb35cecd69594d49a58a1 Mon Sep 17 00:00:00 2001 From: Daniel Collin Date: Thu, 28 Jul 2016 22:09:04 +0200 Subject: [PATCH] Fixed correct window size on Mac --- src/native/macosx/OSXWindowFrameView.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/native/macosx/OSXWindowFrameView.m b/src/native/macosx/OSXWindowFrameView.m index c08d5ba..b5dd20d 100644 --- a/src/native/macosx/OSXWindowFrameView.m +++ b/src/native/macosx/OSXWindowFrameView.m @@ -126,10 +126,10 @@ - (void)windowResized:(NSNotification *)notification; { - NSSize size = [[self window] frame].size; + NSSize size = [self bounds].size; OSXWindow* window = (OSXWindow*)[self window]; - window->shared_data->width = (int)size.width; - window->shared_data->height = (int)size.height; + window->shared_data->width = (int)(size.width); + window->shared_data->height = (int)(size.height); } @end