summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2017-01-15 22:29:53 (GMT)
committerfvogelnew1@free.fr <fvogel>2017-01-15 22:29:53 (GMT)
commit1ee9b897fd2e1b0442b4a08ae8c3a01d50e23cad (patch)
tree04b672d27370b414aa12a4dbb6035e1b5d78bd9f /generic
parent01767b32b2423c6f06e0ea213aec0037c89c0948 (diff)
downloadtk-1ee9b897fd2e1b0442b4a08ae8c3a01d50e23cad.zip
tk-1ee9b897fd2e1b0442b4a08ae8c3a01d50e23cad.tar.gz
tk-1ee9b897fd2e1b0442b4a08ae8c3a01d50e23cad.tar.bz2
Remove obsolete comments. The line they comment was kicked out of the code in [946e946700].
Also, add a small optimization to avoid double invalidation of the damaged region. Indeed the detailed analysis of ticket [fab5fed65e] showed that on OS X the damaged region is invalidated twice: - once through the processing of the Expose event (on OS X the Appkit is not used to draw the widget, Tk is used instead, see comments in tkMacOSXWindowEvent.c around line 770) - a second time because DisplayText() calls TextInvalidateRegion() after TkScrollWindow()
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 1be26c4..c271b4b 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -4299,8 +4299,9 @@ DisplayText(
if (TkScrollWindow(textPtr->tkwin, dInfoPtr->scrollGC, dInfoPtr->x,
oldY, dInfoPtr->maxX-dInfoPtr->x, height, 0, y-oldY,
damageRgn)) {
+#ifndef MAC_OSX_TK
TextInvalidateRegion(textPtr, damageRgn);
-
+#endif
}
numCopies++;
TkDestroyRegion(damageRgn);