mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2025-01-11 03:21:32 +11:00
Fixed correct window size on Mac
This commit is contained in:
parent
c4d2a0fa51
commit
b27ea2bec1
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue