mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 21:50:37 +00:00
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:
parent
80f7ffdb5f
commit
902527511b
9 changed files with 138 additions and 564 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue