Make drawing debug logging a bit more detailed.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17371 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2003-07-26 18:56:06 +00:00
parent 230e74d38b
commit 616f6d342a
3 changed files with 22 additions and 5 deletions

View file

@ -405,7 +405,10 @@ static NSCell *tileCell = nil;
- (void) drawRect: (NSRect)rect
{
NSColor *c = [[self window] backgroundColor];
NSDebugLLog(@"NSView", @"-drawRect: %@ for %@ in window %p (%@)",
NSStringFromRect(rect), self, _window,
NSStringFromRect([_window frame]));
[c set];
NSRectFill(rect);
}
@ -2855,7 +2858,9 @@ Code shared with [NSPanel -sendEvent:], remember to update both places.
[self makeFirstResponder: v];
}
if (_lastView)
DESTROY(_lastView);
{
DESTROY(_lastView);
}
if (wasKey == YES || [v acceptsFirstMouse: theEvent] == YES)
{
if ([NSHelpManager isContextHelpModeActive])