[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix: NSTextView, -drawRect:
From: |
Georg Fleischmann |
Subject: |
Fix: NSTextView, -drawRect: |
Date: |
Fri, 14 Sep 2001 19:55:04 +0200 |
Hi,
here is a patch for NSTextView that redraws the background correctly when
characters are deleted.
Georg
2001-09-14 Georg Fleischmann
* gui/Source/NSTextView.m ([NSTextView -drawRect:]):
redraw background for entire rect not just glyph range
--- gui/Source/NSTextView.m.orig Fri Aug 31 04:30:41 2001
+++ gui/Source/NSTextView.m Fri Sep 14 19:30:40 2001
@@ -2538,8 +2538,8 @@
inTextContainer: _textContainer];
if (_tf.draws_background)
{
- [_layoutManager drawBackgroundForGlyphRange: drawnRange
- atPoint: _textContainerOrigin];
+ [[self backgroundColor] set];
+ NSRectFill(rect);
}
[_layoutManager drawGlyphsForGlyphRange: drawnRange
- Fix: NSTextView, -drawRect:,
Georg Fleischmann <=