diff options
author | Kevin Walzer <kw@codebykevin.com> | 2015-01-04 23:22:29 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2015-01-04 23:22:29 (GMT) |
commit | 3fd4914af5da89ce545fe0857f34a460cf781c0b (patch) | |
tree | 4433eab0933d522c5e1679269ed90e072ef75529 /macosx/tkMacOSXDraw.c | |
parent | 2f75423051e6eda811bcdfeadd4b5397d12baae2 (diff) | |
download | tk-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.c | 9 |
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]; } } |