mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:51:00 +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
769a504f37
commit
4f8b7abade
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>
|
2011-08-19 Eric Wasylishen <ewasylishen@gmail.com>
|
||||||
|
|
||||||
* Source/NSImage.m: Reinstate use of the cached image rep, but only
|
* 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
|
- (void) setSize: (NSSize)aSize
|
||||||
{
|
{
|
||||||
// Optimized as this is called very often from NSImageCell
|
|
||||||
if (NSEqualSizes(_size, aSize))
|
|
||||||
return;
|
|
||||||
|
|
||||||
_size = aSize;
|
_size = aSize;
|
||||||
_flags.sizeWasExplicitlySet = YES;
|
_flags.sizeWasExplicitlySet = YES;
|
||||||
|
|
||||||
[self recache];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSSize) size
|
- (NSSize) size
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue