mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 22:20:37 +00:00
Tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@9186 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4bf7a2fe01
commit
771677e59e
3 changed files with 69 additions and 41 deletions
|
@ -629,12 +629,13 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
y -= rect.size.height;
|
||||
// FIXME This should be able to cut out part of the image
|
||||
PScomposite(NSMinX(rect), NSMinY(rect), NSWidth(rect), NSHeight(rect),
|
||||
[[(NSCachedImageRep *)rep window] gState], aPoint.x, y, op);
|
||||
[[(NSCachedImageRep *)rep window] gState], aPoint.x, y, op);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSRect rect = NSMakeRect(aPoint.x, aPoint.y, _size.width, _size.height);
|
||||
NSRect rect;
|
||||
|
||||
rect = NSMakeRect(aPoint.x, aPoint.y, _size.width, _size.height);
|
||||
[self drawRepresentation: rep inRect: rect];
|
||||
}
|
||||
}
|
||||
|
@ -682,12 +683,13 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
y -= rect.size.height;
|
||||
// FIXME This should be able to cut out part of the image
|
||||
PSdissolve(NSMinX(rect), NSMinY(rect), NSWidth(rect), NSHeight(rect),
|
||||
[[(NSCachedImageRep *)rep window] gState], aPoint.x, y, aFloat);
|
||||
[[(NSCachedImageRep *)rep window] gState], aPoint.x, y, aFloat);
|
||||
}
|
||||
else
|
||||
{
|
||||
NSRect rect = NSMakeRect(aPoint.x, aPoint.y, _size.width, _size.height);
|
||||
NSRect rect;
|
||||
|
||||
rect = NSMakeRect(aPoint.x, aPoint.y, _size.width, _size.height);
|
||||
[self drawRepresentation: rep inRect: rect];
|
||||
}
|
||||
}
|
||||
|
@ -706,7 +708,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
NS_ENDHANDLER
|
||||
}
|
||||
|
||||
- (BOOL)drawRepresentation: (NSImageRep *)imageRep inRect: (NSRect)aRect
|
||||
- (BOOL) drawRepresentation: (NSImageRep *)imageRep inRect: (NSRect)aRect
|
||||
{
|
||||
if (!_flags.scalable)
|
||||
return [imageRep drawAtPoint: aRect.origin];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue