mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:50:37 +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
ae19679271
commit
e1cb2b75ef
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>
|
2007-09-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTextView.m (-drawRect:, -rectForCharacterRange:,
|
* Source/NSTextView.m (-drawRect:, -rectForCharacterRange:,
|
||||||
|
|
|
@ -834,24 +834,8 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
||||||
[_window invalidateCursorRectsForView: self];
|
[_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
|
- (void) displayRectIgnoringOpacity: (NSRect)aRect
|
||||||
|
inContext: (NSGraphicsContext *)context
|
||||||
{
|
{
|
||||||
if (_window == nil)
|
if (_window == nil)
|
||||||
{
|
{
|
||||||
|
@ -864,7 +848,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
||||||
[self _adjustSubviews: _frame.size];
|
[self _adjustSubviews: _frame.size];
|
||||||
}
|
}
|
||||||
|
|
||||||
[super displayRectIgnoringOpacity: aRect];
|
[super displayRectIgnoringOpacity: aRect inContext: context];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) delegate
|
- (id) delegate
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue