diff --git a/ChangeLog b/ChangeLog index e214039ae..7afa5dbd4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-07-26 18:50 Alexander Malmberg + + * Source/NSView.m, Source/NSWindow.m: Make drawing debug logging + more detailed. + 2003-07-26 Fred Kiefer * Panel/English.proj/GSPageLayout.gorm/objects.gorm diff --git a/Source/NSView.m b/Source/NSView.m index 63c356170..bb66b8ac7 100644 --- a/Source/NSView.m +++ b/Source/NSView.m @@ -1558,8 +1558,12 @@ GSSetDragTypes(NSView* obj, NSArray *types) [ctxt lockFocusView: self inRect: rect]; wrect = [self convertRect: rect toView: nil]; - NSDebugLLog(@"NSView", @"Displaying rect \n\t%@\n\t window %p, flip %d", - NSStringFromRect(wrect), _window, _rFlags.flipped_view); + NSDebugLLog(@"NSView", @"-lockFocusInRect: %@\n" + @"\t for view %@ in window %p (%@)\n" + @"\t frame %@, flip %d", + NSStringFromRect(wrect), + self, _window, NSStringFromRect([_window frame]), + NSStringFromRect(_frame),_rFlags.flipped_view); if (viewIsPrinting == nil) { struct NSWindow_struct *window_t = (struct NSWindow_struct *)_window; @@ -1642,6 +1646,9 @@ GSSetDragTypes(NSView* obj, NSArray *types) { NSGraphicsContext *ctxt = GSCurrentContext(); + NSDebugLLog(@"NSView_details", @"-unlockFocusNeedsFlush: %i for view %@\n", + flush, self); + if (viewIsPrinting == nil) { NSAssert(_window != nil, NSInternalInconsistencyException); @@ -1682,7 +1689,7 @@ GSSetDragTypes(NSView* obj, NSArray *types) - (void) unlockFocus { - [self unlockFocusNeedsFlush: YES ]; + [self unlockFocusNeedsFlush: YES]; } - (BOOL) lockFocusIfCanDraw diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 0ff1fe495..4d7a82467 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -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])