summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-02-24 15:10:40 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-02-24 15:10:40 (GMT)
commit31d4a36e782d8abdf6c7657c926dee44cfe90f4a (patch)
treef735bcdffc5bd8ff7a33bfb9ea4a18619029a18a /generic
parent436d703a7691d7b1af382e9891e1c8eed13bceb4 (diff)
parentb4c8b7030528c756f79673b9511327918950afb7 (diff)
downloadtk-31d4a36e782d8abdf6c7657c926dee44cfe90f4a.zip
tk-31d4a36e782d8abdf6c7657c926dee44cfe90f4a.tar.gz
tk-31d4a36e782d8abdf6c7657c926dee44cfe90f4a.tar.bz2
merge 8.5
Diffstat (limited to 'generic')
-rw-r--r--generic/tkTextDisp.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/generic/tkTextDisp.c b/generic/tkTextDisp.c
index 3edd5dc..bcbb03a 100644
--- a/generic/tkTextDisp.c
+++ b/generic/tkTextDisp.c
@@ -3931,30 +3931,6 @@ TkTextUpdateOneLine(
*
*----------------------------------------------------------------------
*/
-#ifdef MAC_OSX_TK
-static void
-RedisplayText(
- ClientData clientData )
-{
- register TkText *textPtr = (TkText *) clientData;
- TextDInfo *dInfoPtr = textPtr->dInfoPtr;
- TkRegion damageRegion;
- XRectangle rectangle;
-
- if (dInfoPtr == NULL) {
- return;
- }
- damageRegion = TkCreateRegion();
- rectangle.x = 0;
- rectangle.y = 0;
- rectangle.width = dInfoPtr->maxX;
- rectangle.height = dInfoPtr->maxY;
- TkUnionRectWithRegion(&rectangle, damageRegion, damageRegion);
-
- TextInvalidateRegion(textPtr, damageRegion);
- DisplayText(clientData);
-}
-#endif
static void
DisplayText(
@@ -3969,9 +3945,6 @@ DisplayText(
int bottomY = 0; /* Initialization needed only to stop compiler
* warnings. */
Tcl_Interp *interp;
-#ifdef MAC_OSX_TK
- Tcl_TimerToken macRefreshTimer = NULL;
-#endif
if ((textPtr->tkwin == NULL) || (textPtr->flags & DESTROYED)) {
/*
@@ -4165,21 +4138,6 @@ DisplayText(
damageRgn)) {
TextInvalidateRegion(textPtr, damageRgn);
-#ifdef MAC_OSX_TK
-
- /*
- * On OS X large scrolls sometimes leave garbage on the screen.
- * This attempts to clean it up by redisplaying the Text window
- * after 200 milliseconds.
- */
- if ( abs(y-oldY) > 14 ) {
- Tcl_DeleteTimerHandler(macRefreshTimer);
- macRefreshTimer = Tcl_CreateTimerHandler(200,
- RedisplayText,
- clientData);
- }
-#endif
-
}
numCopies++;
TkDestroyRegion(damageRgn);