cocoa: more fixes

This commit is contained in:
IoIxD
2026-01-12 15:31:22 -07:00
parent e45a1f6ad8
commit efcc176c04

View File

@@ -224,12 +224,12 @@
point->x = p.x; point->x = p.x;
point->y = p.y; point->y = p.y;
}; };
- (void)getScreenSize:(MwRect *)rect { - (void)getScreenSize:(MwRect *)_rect {
NSScreen *screen = [self->window screen]; NSScreen *screen = [self->window screen];
rect->x = [screen frame].origin.x; _rect->x = [screen frame].origin.x;
rect->y = [screen frame].origin.y; _rect->y = [screen frame].origin.y;
rect->width = [screen frame].size.width; _rect->width = [screen frame].size.width;
rect->height = [screen frame].size.height; _rect->height = [screen frame].size.height;
}; };
- (void)destroy { - (void)destroy {
[self->window dealloc]; [self->window dealloc];