* Source/NSImage.m (-setSize:): Don't invalidate the cache anymore,

because we now cache the entire representation and not the rep scaled
to the image's size.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33770 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-08-20 18:37:52 +00:00
parent 5531d27e56
commit e14b034d8d
2 changed files with 6 additions and 6 deletions

View file

@ -1,3 +1,9 @@
2011-08-20 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m (-setSize:): Don't invalidate the cache anymore,
because we now cache the entire representation and not the rep scaled
to the image's size.
2011-08-19 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSImage.m: Reinstate use of the cached image rep, but only

View file

@ -602,14 +602,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
- (void) setSize: (NSSize)aSize
{
// Optimized as this is called very often from NSImageCell
if (NSEqualSizes(_size, aSize))
return;
_size = aSize;
_flags.sizeWasExplicitlySet = YES;
[self recache];
}
- (NSSize) size