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,6 +654,7 @@ static void recursive_dispatch_key_released(MwLL handle, int* k) {
NSArray* subviews = [self subviews];
int i;
if(self->width != dirtyRect.size.width || self->height != dirtyRect.size.height) {
if(self->rep) {
[self->rep release];
}
@ -666,6 +667,7 @@ static void recursive_dispatch_key_released(MwLL handle, int* k) {
[pool release];
return;
}
}
[self->rep drawInRect:[self bounds]];