mac: only recreate rep if width/height is different. also untested but i'm confident in this
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
b661face26
commit
bb876b9620
1 changed files with 13 additions and 11 deletions
|
|
@ -654,17 +654,19 @@ static void recursive_dispatch_key_released(MwLL handle, int* k) {
|
||||||
NSArray* subviews = [self subviews];
|
NSArray* subviews = [self subviews];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if(self->rep) {
|
if(self->width != dirtyRect.size.width || self->height != dirtyRect.size.height) {
|
||||||
[self->rep release];
|
if(self->rep) {
|
||||||
}
|
[self->rep release];
|
||||||
if(dirtyRect.size.width && dirtyRect.size.height) {
|
}
|
||||||
[self initRepAndContextWithWidth:dirtyRect.size.width
|
if(dirtyRect.size.width && dirtyRect.size.height) {
|
||||||
Height:dirtyRect.size.height];
|
[self initRepAndContextWithWidth:dirtyRect.size.width
|
||||||
self->width = dirtyRect.size.width;
|
Height:dirtyRect.size.height];
|
||||||
self->height = dirtyRect.size.height;
|
self->width = dirtyRect.size.width;
|
||||||
} else {
|
self->height = dirtyRect.size.height;
|
||||||
[pool release];
|
} else {
|
||||||
return;
|
[pool release];
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[self->rep drawInRect:[self bounds]];
|
[self->rep drawInRect:[self bounds]];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue