Fixed an error in the previous commit.

This commit is contained in:
Pietro Gagliardi 2014-08-04 17:30:18 -04:00
parent 6010665415
commit c33786ab96
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@
return windowClosing(self->gowin); return windowClosing(self->gowin);
} }
// TODO there has to be a better way
- (void)doWindowResize:(id)win - (void)doWindowResize:(id)win
{ {
NSWindow *w; NSWindow *w;
@ -27,7 +28,7 @@
w = toNSWindow(win); w = toNSWindow(win);
r = [[w contentView] frame]; r = [[w contentView] frame];
windowResized(self->gowin, (uintptr_t) r.size.width, (uintptr_t) r.size.height); [[w contentView] setFrameSize:r.size];
} }
@end @end