forked from pyrite-dev/milsko
mac: getXYImpl should also flip whatever is given to it
This commit is contained in:
parent
6e5057f8c6
commit
a7d790698f
1 changed files with 6 additions and 1 deletions
|
|
@ -793,7 +793,12 @@ static void MwLLGetXYWHImpl(MwLL handle, int* x, int* y, unsigned int* w,
|
|||
} else {
|
||||
frame = [self->window frame];
|
||||
}
|
||||
frame = rectFlip(frame);
|
||||
|
||||
if(!self->parent) {
|
||||
frame = rectFlip(frame);
|
||||
} else {
|
||||
frame = localRectFlip(frame, self->parent->cocoa.real->view);
|
||||
}
|
||||
|
||||
*x = frame.origin.x;
|
||||
*y = frame.origin.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue