mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 15:31:14 +00:00
Fix minor coordinate mapping issue
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@23606 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
38c35f71c3
commit
c5ef09b08c
1 changed files with 3 additions and 3 deletions
|
@ -462,9 +462,9 @@ static void setWindowHintsForStyle (Display *dpy, Window window,
|
|||
[self styleoffsets: &l : &r : &t : &b : style : win->ident];
|
||||
o.size.width = x.size.width;
|
||||
o.size.height = x.size.height;
|
||||
o.origin.x = x.origin.x - l;
|
||||
o.origin.y = NSHeight(win->xframe) - x.origin.y;
|
||||
o.origin.y = o.origin.y - x.size.height - b;
|
||||
o.origin.x = x.origin.x + l;
|
||||
o.origin.y = NSHeight(win->xframe) - (x.origin.y + x.size.height);
|
||||
o.origin.y = o.origin.y + b;
|
||||
NSDebugLLog(@"Frame", @"XW2OW %@ %@",
|
||||
NSStringFromRect(x), NSStringFromRect(o));
|
||||
return o;
|
||||
|
|
Loading…
Reference in a new issue