mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
* 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:
parent
5531d27e56
commit
e14b034d8d
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue