Draw image background even when clear

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11654 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fedor 2001-12-07 22:52:42 +00:00
parent 80f7ffdb5f
commit 902527511b
9 changed files with 138 additions and 564 deletions

View file

@ -311,7 +311,7 @@ static NSCell* tileCell = nil;
}
- (void) drawRect: (NSRect)rect
{
{
[tileCell drawWithFrame: NSMakeRect(0,0,64,64) inView: self];
[dragCell drawWithFrame: NSMakeRect(8,8,48,48) inView: self];
}
@ -1248,15 +1248,12 @@ static NSCell* tileCell = nil;
if (!theEvent)
NSDebugLLog(@"NSEvent", @"NSEvent is nil!\n");
NSDebugLLog(@"NSEvent", @"NSEvent type: %d", type);
NSDebugLLog(@"NSEvent", @"send event to window");
NSDebugLLog(@"NSEvent", [window description]);
NSDebugLLog(@"NSEvent", @"Send NSEvent type: %d to window %@",
type, (window) ? window : @"No window");
if (window)
[window sendEvent: theEvent];
else if (type == NSRightMouseDown)
[self rightMouseDown: theEvent];
else
NSDebugLLog(@"NSEvent", @"no window");
}
}
}

View file

@ -796,7 +796,7 @@ repd_for_rep(NSArray *_reps, NSImageRep *rep)
- (BOOL) drawRepresentation: (NSImageRep *)imageRep inRect: (NSRect)aRect
{
if (_color != nil && [_color alphaComponent] != 0.0)
if (_color != nil)
{
[_color set];
NSRectFill(aRect);