mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:10:37 +00:00
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:
parent
8d3ef364d3
commit
ae7f99c597
5 changed files with 42 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue