Fixed correct window size on Mac

This commit is contained in:
Daniel Collin 2016-07-28 22:09:04 +02:00
parent c4d2a0fa51
commit b27ea2bec1

View file

@ -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