Changeset 21560
- Timestamp:
- 11/07/2007 01:39:13 AM (1 year ago)
- Files:
-
- trunk/Frameworks/AIUtilities Framework/Source/AIImageAdditions.m (modified) (4 diffs)
- trunk/Source/ESUserIconHandlingPlugin.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/AIUtilities Framework/Source/AIImageAdditions.m
r21559 r21560 233 233 } 234 234 235 NSImage *imageToDraw = [self copy];236 237 235 newRect = NSMakeRect(0,0,size.width,size.height); 238 236 newImage = [[NSImage alloc] initWithSize:size]; … … 242 240 NSImageRep *bestRep; 243 241 if (allowAnimation && 244 (bestRep = [ imageToDrawbestRepresentationForDevice:nil]) &&242 (bestRep = [self bestRepresentationForDevice:nil]) && 245 243 [bestRep isKindOfClass:[NSBitmapImageRep class]] && 246 244 (delta == 1.0) && … … 253 251 //Highest quality interpolation 254 252 [[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh]; 255 [ imageToDrawdrawInRect:newRect253 [self drawInRect:newRect 256 254 fromRect:NSMakeRect(0,0,originalSize.width,originalSize.height) 257 255 operation:NSCompositeCopy … … 260 258 [newImage unlockFocus]; 261 259 } 262 263 [imageToDraw release];264 260 265 261 return [newImage autorelease]; trunk/Source/ESUserIconHandlingPlugin.m
r21218 r21560 103 103 NSImage *cachedImage; 104 104 105 cachedImage = [[NSImage alloc] initByReferencingFile:cachedImagePath]; 105 cachedImage = [[NSImage alloc] initWithContentsOfFile:cachedImagePath]; 106 [cachedImage setDataRetained:YES]; 106 107 107 108 if (cachedImage) {