mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-19 07:34:08 +00:00
cocoa: more fixes
This commit is contained in:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user