Hi,
I noticed that GNUstep uses flipped coordinates for the frame string in
-setFrameFromString and -stringWithSavedFrame.
On OpenStep the methods use normal coordinates.
The attached patch removes the flipping.
Georg
2002-07-28 Georg Fleischmann
* gui/Source/NSWindow [-setFrameFromString:], [-stringWithSavedFrame:]:
don't flip coordinates to make it compatible with OpenStep
*** gui/Source/NSWindow.m.old Mon Jul 22 18:38:35 2002
--- gui/Source/NSWindow.m Sun Jul 28 22:02:28 2002
***************
*** 3518,3528 ****
}
/*
- * Convert frame from flipped to normal coordinates.
- */
- fRect.origin.y -= fRect.size.height;
-
- /*
* Check and set frame.
*/
if (_maximumSize.width > 0 && fRect.size.width > _maximumSize.width)
--- 3518,3523 ----
***************
*** 3574,3580 ****
NSRect sRect;
fRect = _frame;
- fRect.origin.y += fRect.size.height; /* Make flipped */
/*
* FIXME - the screen rectangle should give the area of the screen in which
* the window could be placed (ie a rectangle excluding the dock), but
--- 3569,3574 ----
_______________________________________________
Bug-gnustep mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-gnustep