...however, from an efficiency standpoint, using multiple clip rects is almost certainly better, because it ensures that the characters are only painted once. This is slightly more complex in TextInput and TextArea, since the selection may bisect the text, resulting in up to three clip rects. However, this is a simple enough problem to solve and is probably worth doing (especially in TextArea, where selections are likely to span many characters).

On Oct 29, 2009, at 10:49 AM, Greg Brown wrote:

FWIW, both TextInput and TextArea use the approach I suggested and I haven't seen any odd paint behavior resulting from it.

On Oct 29, 2009, at 10:44 AM, Todd Volkert wrote:

I used 2 clip regions, but I can see that your way would be less code.
I'll make that change as well.


I'd keep it the way you have it now, since I've seen weird bloating of the
glyphs happen when you paint an anti-aliased glyph over itself.

-T


Reply via email to