mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-26 02:36:32 +11:00
Fixed correct window size on Mac
This commit is contained in:
parent
c4d2a0fa51
commit
b27ea2bec1
1 changed files with 3 additions and 3 deletions
|
@ -126,10 +126,10 @@
|
||||||
|
|
||||||
- (void)windowResized:(NSNotification *)notification;
|
- (void)windowResized:(NSNotification *)notification;
|
||||||
{
|
{
|
||||||
NSSize size = [[self window] frame].size;
|
NSSize size = [self bounds].size;
|
||||||
OSXWindow* window = (OSXWindow*)[self window];
|
OSXWindow* window = (OSXWindow*)[self window];
|
||||||
window->shared_data->width = (int)size.width;
|
window->shared_data->width = (int)(size.width);
|
||||||
window->shared_data->height = (int)size.height;
|
window->shared_data->height = (int)(size.height);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Reference in a new issue