mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
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:
parent
3b12428f3b
commit
77fa3e8966
3 changed files with 22 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-07-26 18:50 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSView.m, Source/NSWindow.m: Make drawing debug logging
|
||||
more detailed.
|
||||
|
||||
2003-07-26 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Panel/English.proj/GSPageLayout.gorm/objects.gorm
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in a new issue