mirror of
https://github.com/transmission/transmission
synced 2025-03-13 07:33:02 +00:00
#5053 Fix crash on 10.6
This commit is contained in:
parent
d063c4fb1d
commit
c9f86ff4e3
1 changed files with 7 additions and 4 deletions
|
@ -139,10 +139,13 @@
|
||||||
|
|
||||||
NSRectFillListWithColors(gridRects, colorRects, count);
|
NSRectFillListWithColors(gridRects, colorRects, count);
|
||||||
|
|
||||||
[fNoiseImage drawInRect: rect
|
if (fNoiseImage) {
|
||||||
fromRect: [self convertRectToBacking: rect]
|
NSAssert([NSApp isOnLionOrBetter], @"we have a noise image, but we're on 10.6"); //https://trac.transmissionbt.com/ticket/5053
|
||||||
operation: NSCompositeSourceOver
|
[fNoiseImage drawInRect: rect
|
||||||
fraction: 0.12];
|
fromRect: [self convertRectToBacking: rect]
|
||||||
|
operation: NSCompositeSourceOver
|
||||||
|
fraction: 0.12];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Add table
Reference in a new issue