Speed up live resize

This commit is contained in:
Bjorn Winckler
2008-10-25 21:10:52 +02:00
parent dd74c0b520
commit 69c156faf4
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -710,10 +710,12 @@ defaultLineHeightForFont(NSFont *font)
[self endDrawing];
[self setNeedsDisplay:YES];
// NOTE: During resizing, Cocoa only sends draw messages before Vim's rows
// and columns are changed (due to ipc delays). Force a redraw here.
[self setNeedsDisplay:YES];
// [self displayIfNeeded];
if ([self inLiveResize])
[self display];
#if MM_DEBUG_DRAWING
NSLog(@"<==== END %s", _cmd);
+2 -1
View File
@@ -287,7 +287,8 @@
// NOTE: During resizing, Cocoa only sends draw messages before Vim's rows
// and columns are changed (due to ipc delays). Force a redraw here.
[self displayIfNeeded];
if ([self inLiveResize])
[self display];
#if MM_DEBUG_DRAWING
NSLog(@"<==== END %s", _cmd);