summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-01-04 23:22:29 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-01-04 23:22:29 (GMT)
commit3fd4914af5da89ce545fe0857f34a460cf781c0b (patch)
tree4433eab0933d522c5e1679269ed90e072ef75529 /macosx/tkMacOSXDraw.c
parent2f75423051e6eda811bcdfeadd4b5397d12baae2 (diff)
downloadtk-3fd4914af5da89ce545fe0857f34a460cf781c0b.zip
tk-3fd4914af5da89ce545fe0857f34a460cf781c0b.tar.gz
tk-3fd4914af5da89ce545fe0857f34a460cf781c0b.tar.bz2
Improved scrolling for text under Cocoa; thanks to Marc Culler for patch.
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index d4b2c85..ecc6c0d 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -1531,10 +1531,11 @@ TkScrollWindow(
}
}
}
-
- /* Redisplay the scrolled area. */
- [view displayRect:scrollDst];
-
+
+ /* Redisplay the scrolled area; hide to reduce flicker after removal of private API calls. */
+ [view setHidden:YES];
+ [view displayRect:scrollDst];
+ [view setHidden:NO];
}
}