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

This commit is contained in:
IoI_xD 2026-04-13 16:45:20 -07:00
commit bb876b9620

View file

@ -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]];