mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 08:21:00 +00:00
* Source/NSImage.m: Tidy the -composite*/-dissolve* methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33299 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f2f4ab4076
commit
baeb44bf84
2 changed files with 24 additions and 26 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-06-14 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSImage.m: Tidy the -composite*/-dissolve* methods
|
||||
|
||||
2011-06-13 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSTextView.m (-scrollRangeToVisible:): Work with ranges
|
||||
|
|
|
@ -805,11 +805,10 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
- (void) compositeToPoint: (NSPoint)aPoint
|
||||
operation: (NSCompositingOperation)op
|
||||
{
|
||||
// Might not be computed up to now
|
||||
NSSize size = [self size];
|
||||
NSRect rect = NSMakeRect(0, 0, size.width, size.height);
|
||||
|
||||
[self compositeToPoint: aPoint fromRect: rect operation: op];
|
||||
[self compositeToPoint: aPoint
|
||||
fromRect: NSZeroRect
|
||||
operation: op
|
||||
fraction: 1.0];
|
||||
}
|
||||
|
||||
- (void) compositeToPoint: (NSPoint)aPoint
|
||||
|
@ -826,10 +825,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
operation: (NSCompositingOperation)op
|
||||
fraction: (float)delta
|
||||
{
|
||||
NSSize size = [self size];
|
||||
|
||||
[self compositeToPoint: aPoint
|
||||
fromRect: NSMakeRect(0, 0, size.width, size.height)
|
||||
fromRect: NSZeroRect
|
||||
operation: op
|
||||
fraction: delta];
|
||||
}
|
||||
|
@ -872,10 +869,8 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
|
||||
- (void) dissolveToPoint: (NSPoint)aPoint fraction: (float)aFloat
|
||||
{
|
||||
NSSize size = [self size];
|
||||
|
||||
[self dissolveToPoint: aPoint
|
||||
fromRect: NSMakeRect(0, 0, size.width, size.height)
|
||||
fromRect: NSZeroRect
|
||||
fraction: aFloat];
|
||||
}
|
||||
|
||||
|
@ -924,8 +919,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
|
|||
operation: (NSCompositingOperation)op
|
||||
fraction: (float)delta
|
||||
{
|
||||
[self drawInRect: NSMakeRect(point.x, point.y, srcRect.size.width,
|
||||
srcRect.size.height)
|
||||
[self drawInRect: NSMakeRect(point.x, point.y, srcRect.size.width, srcRect.size.height)
|
||||
fromRect: srcRect
|
||||
operation: op
|
||||
fraction: delta];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue