Revamp flushWindow code

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4180 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 1999-05-02 01:34:06 +00:00
parent 8d3ef364d3
commit ae7f99c597
5 changed files with 42 additions and 4 deletions

View file

@ -159,7 +159,6 @@
[miniaturized_title release];
[miniaturized_image release];
[window_title release];
[_flushRectangles release];
[super dealloc];
}
@ -215,8 +214,10 @@
cframe.size = frame.size;
[self setContentView: [[[NSView alloc] initWithFrame: cframe] autorelease]];
_flushRectangles = [[NSMutableArray alloc] initWithCapacity: 10];
/* rectBeingDrawn is variable used to optimize flushing the backing store.
It is set by NSGraphicContext during a lockFocus to tell NSWindow what
part a view is drawing in, so NSWindow only has to flush that portion */
rectBeingDrawn = NSZeroRect;
NSDebugLog(@"NSWindow end of init\n");
return self;