forked from pyrite-dev/milsko
cocoa: more fixes
This commit is contained in:
parent
e45a1f6ad8
commit
efcc176c04
1 changed files with 5 additions and 5 deletions
|
|
@ -224,12 +224,12 @@
|
|||
point->x = p.x;
|
||||
point->y = p.y;
|
||||
};
|
||||
- (void)getScreenSize:(MwRect *)rect {
|
||||
- (void)getScreenSize:(MwRect *)_rect {
|
||||
NSScreen *screen = [self->window screen];
|
||||
rect->x = [screen frame].origin.x;
|
||||
rect->y = [screen frame].origin.y;
|
||||
rect->width = [screen frame].size.width;
|
||||
rect->height = [screen frame].size.height;
|
||||
_rect->x = [screen frame].origin.x;
|
||||
_rect->y = [screen frame].origin.y;
|
||||
_rect->width = [screen frame].size.width;
|
||||
_rect->height = [screen frame].size.height;
|
||||
};
|
||||
- (void)destroy {
|
||||
[self->window dealloc];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue