Fixed an error in the previous commit.
This commit is contained in:
parent
6010665415
commit
c33786ab96
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue