summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2017-01-18 22:23:10 (GMT)
committerfvogel <fvogelnew1@free.fr>2017-01-18 22:23:10 (GMT)
commitb5a8363553e6127b6c684d33f6b3fdccb57f84df (patch)
treef5ca09b54bd2e197173054a95d20ac278041357c /macosx/tkMacOSXDraw.c
parent5442c2a77a9c025b2245d42dbae20829f03be9bc (diff)
parent886747e926ca6149ad730cbd07c59aa716f46435 (diff)
downloadtk-b5a8363553e6127b6c684d33f6b3fdccb57f84df.zip
tk-b5a8363553e6127b6c684d33f6b3fdccb57f84df.tar.gz
tk-b5a8363553e6127b6c684d33f6b3fdccb57f84df.tar.bz2
Fix [fab5fed65e]: OS X - lots of textDisp failures (spurious 'borders' and indices in tk_textRedraw).
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 474ed41..5ca8bfe 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1527,12 +1527,6 @@ TkScrollWindow(
srcRect = CGRectMake(x, y, width, height);
dstRect = CGRectOffset(srcRect, dx, dy);
- /* Expand the rectangles slightly to avoid degeneracies. */
- srcRect.origin.y -= 1;
- srcRect.size.height += 2;
- dstRect.origin.y += 1;
- dstRect.size.height -= 2;
-
/* Compute the damage. */
dmgRgn = HIShapeCreateMutableWithRect(&srcRect);
extraRgn = HIShapeCreateWithRect(&dstRect);
@@ -1571,9 +1565,6 @@ TkScrollWindow(
int oldMode = Tcl_SetServiceMode(TCL_SERVICE_NONE);
[view generateExposeEvents:dmgRgn childrenOnly:1];
Tcl_SetServiceMode(oldMode);
-
- /* Belt and suspenders: make the AppKit request a redraw
- when it gets control again. */
}
} else {
dmgRgn = HIShapeCreateEmpty();