mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 06:20:47 +00:00
iImprove image caching
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5609 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
abb119e561
commit
fccedb1084
2 changed files with 11 additions and 5 deletions
|
@ -600,17 +600,17 @@ static Class cacheClass = 0;
|
|||
*/
|
||||
if (repd->bg == nil)
|
||||
{
|
||||
NSRect bounds;
|
||||
NSRect drawRect = NSMakeRect(0, 0, _size.width, _size.height);
|
||||
|
||||
[self lockFocusOnRepresentation: rep];
|
||||
bounds = [_lockedView bounds];
|
||||
if (_color != nil && [_color alphaComponent] != 0.0)
|
||||
{
|
||||
NSRect bounds = [_lockedView bounds];
|
||||
|
||||
[_color set];
|
||||
NSEraseRect(bounds);
|
||||
NSRectFill(bounds);
|
||||
}
|
||||
[self drawRepresentation: repd->original
|
||||
inRect: NSMakeRect(0, 0, _size.width, _size.height)];
|
||||
[self drawRepresentation: repd->original inRect: drawRect];
|
||||
[self unlockFocus];
|
||||
if (_color == nil)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue