mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 09:11:03 +00:00
Implement -displayRectIgnoringOpacity:inContext: instead of the two old
display methods. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25477 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
339e3acbef
commit
f05f6be3b4
2 changed files with 7 additions and 18 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSSplitView.m (-displayRectIgnoringOpacity:inContext:):
|
||||
Implement this method instead of the two old display methods.
|
||||
|
||||
2007-09-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSTextView.m (-drawRect:, -rectForCharacterRange:,
|
||||
|
|
|
@ -834,24 +834,8 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
[_window invalidateCursorRectsForView: self];
|
||||
}
|
||||
|
||||
|
||||
- (void) displayIfNeededInRectIgnoringOpacity: (NSRect)aRect
|
||||
{
|
||||
if (_window == nil)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (_never_displayed_before == YES)
|
||||
{
|
||||
_never_displayed_before = NO;
|
||||
[self _adjustSubviews: _frame.size];
|
||||
}
|
||||
|
||||
[super displayIfNeededInRectIgnoringOpacity: aRect];
|
||||
}
|
||||
|
||||
- (void) displayRectIgnoringOpacity: (NSRect)aRect
|
||||
inContext: (NSGraphicsContext *)context
|
||||
{
|
||||
if (_window == nil)
|
||||
{
|
||||
|
@ -864,7 +848,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
[self _adjustSubviews: _frame.size];
|
||||
}
|
||||
|
||||
[super displayRectIgnoringOpacity: aRect];
|
||||
[super displayRectIgnoringOpacity: aRect inContext: context];
|
||||
}
|
||||
|
||||
- (id) delegate
|
||||
|
|
Loading…
Reference in a new issue