Thu Feb 18 1999 Felipe A. Rodriguez <farz@mindspring.com>

* NSView.m display: fix for display bug in buttons example
	* NSCell.m endEditing: fix for display bug in buttons example
	* NSTextField.m textShouldEndEditing: The changes to these three classes
    fix a display bug visible in the buttons example when the top text field is
    selected for editing and then asked to resign when the user clicks on say
    the bottom text field.  This causes a rect encompassing both views to be
    invalidated and displayed.  Beyond being inefficient this also causes a
    display glitch given the current drawing methodology.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3755 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Felipe A. Rodriguez 1999-02-18 10:46:39 +00:00
parent c064034852
commit ee210229a6
4 changed files with 54 additions and 18 deletions

View file

@ -928,13 +928,22 @@ static PSMatrix *flip = nil;
return NO;
}
- (void) display
- (void)display
{
if (!window)
return;
[self displayRect: bounds];
}
if(!window) // do nothing if not in
return; // a window's heirarchy
if ([self isOpaque]) // if self is opaque
[self displayRect:bounds]; // display visible rect
else // else back up to a
{
NSView *firstOpaque = [self opaqueAncestor]; // convert rect into
NSRect rect = bounds; // coordinates of the
// first opaque view
rect = [firstOpaque convertRect:rect fromView:self];
[firstOpaque displayRect:rect];
}
}
- (void) displayIfNeeded
{