summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXFont.c
diff options
context:
space:
mode:
authorculler <culler>2021-04-22 17:07:28 (GMT)
committerculler <culler>2021-04-22 17:07:28 (GMT)
commit019923f12e5ac43053840de0701390146ae57907 (patch)
tree062dab0df9da68356ef83a19f89394751ccdc920 /macosx/tkMacOSXFont.c
parent66304f744b14ffc5eb42724284c279e91de9444d (diff)
downloadtk-019923f12e5ac43053840de0701390146ae57907.zip
tk-019923f12e5ac43053840de0701390146ae57907.tar.gz
tk-019923f12e5ac43053840de0701390146ae57907.tar.bz2
Remove unneeded portBounds field from TkMacOSXDrawingContext; add more graphics debugging tools.
Diffstat (limited to 'macosx/tkMacOSXFont.c')
-rw-r--r--macosx/tkMacOSXFont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXFont.c b/macosx/tkMacOSXFont.c
index 2a28f73..8189bdb 100644
--- a/macosx/tkMacOSXFont.c
+++ b/macosx/tkMacOSXFont.c
@@ -1217,7 +1217,7 @@ TkpDrawAngledCharsInContext(
(CFAttributedStringRef)attributedString);
textX += (CGFloat) macWin->xOff;
textY += (CGFloat) macWin->yOff;
- height = drawingContext.portBounds.size.height;
+ height = [drawingContext.view bounds].size.height;
textY = height - textY;
t = CGAffineTransformMake(1.0, 0.0, 0.0, -1.0, 0.0, height);
if (angle != 0.0) {