[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: fix position of drawAtPoint in attributed string
From: |
Pete French |
Subject: |
PATCH: fix position of drawAtPoint in attributed string |
Date: |
Wed, 18 Jun 2003 23:49:03 +0100 |
The following patch fixes the problem of the incorrect string position
in a non-flipped view. behaviour is now the same as on OSX and OpenStep.
-bat. [simple when you finally spot it!]
*** NSStringDrawing.m.orig Wed Jun 18 23:47:17 2003
--- NSStringDrawing.m Wed Jun 18 23:39:10 2003
***************
*** 100,105 ****
--- 100,107 ----
{
DPSscale(ctxt, 1, -1);
point.y = -point.y;
+ point.y -= [layoutManager usedRectForTextContainer:
+ textContainer].size.height;
[NSFont _setFontFlipHack: YES];
}
- PATCH: fix position of drawAtPoint in attributed string,
Pete French <=