diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-12-21 04:11:51 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-12-21 04:11:51 (GMT) |
commit | 8faca188c488af10facd0c8470314303f1b02c5b (patch) | |
tree | 8cd84f987e3850fec0e7bf15b7ff5bede667a9e1 /macosx/tkMacOSXWindowEvent.c | |
parent | 4f1970b5b3274109e885922378d7da7330a975c4 (diff) | |
download | tk-8faca188c488af10facd0c8470314303f1b02c5b.zip tk-8faca188c488af10facd0c8470314303f1b02c5b.tar.gz tk-8faca188c488af10facd0c8470314303f1b02c5b.tar.bz2 |
Minor optimization of drawing code in OSX
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 5d50278..6546070 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -839,8 +839,11 @@ ExposeRestrictProc( NSEventTrackingRunLoopMode, NSModalPanelRunLoopMode, nil]]; } + CFRelease(drawShape); drawTime=-[beginTime timeIntervalSinceNow]; + [super setNeedsDisplayInRect:rect]; + } /*At conclusion of resize event, send notification and set view for redraw if earlier drawing was skipped because of lagginess.*/ @@ -877,7 +880,7 @@ ExposeRestrictProc( * just posted Expose events from generating new redraws. */ - while (Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_DONT_WAIT)) {} + while (Tcl_DoOneEvent(TCL_IDLE_EVENTS|TCL_DONT_WAIT)) {} /* * For smoother drawing, process Expose events and resulting redraws |