diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-04-14 09:38:24 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2008-04-14 09:38:24 +0000 |
commit | 5dfc6a2d20122bd03bff22f1be99e69910bab388 (patch) | |
tree | 4197ad65cde60e8fa277867808dc9bcba59e2084 | |
parent | 126c23f49de6e8fa86e92846ff81c0cb33c27d43 (diff) | |
download | fpGUI-5dfc6a2d20122bd03bff22f1be99e69910bab388.tar.xz |
* TfpgEdit selection is now painted without the use of XOR, so anti-aliased text should look much better. It's now got the same look as ComboBoxes and CalendarComboBoxes.
-rw-r--r-- | src/gui/gui_edit.pas | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gui/gui_edit.pas b/src/gui/gui_edit.pas index 9db04824..588113b8 100644 --- a/src/gui/gui_edit.pas +++ b/src/gui/gui_edit.pas @@ -352,16 +352,14 @@ var end; tw := FFont.TextWidth(UTF8copy(dtext, 1, st)); tw2 := FFont.TextWidth(UTF8copy(dtext, 1, st + len)); - Canvas.XORFillRectangle(fpgColorToRGB(lcolor) xor $FFFFFF, - -FDrawOffset + FSideMargin + tw, 3, tw2 - tw, FFont.Height); -{ // This migt be used in the future Canvas.SetColor(lcolor); Canvas.FillRectangle(-FDrawOffset + FSideMargin + tw, 3, tw2 - tw, FFont.Height); r.SetRect(-FDrawOffset + FSideMargin + tw, 3, tw2 - tw, FFont.Height); Canvas.AddClipRect(r); + Canvas.SetTextColor(clWhite); fpgStyle.DrawString(Canvas, -FDrawOffset + FSideMargin, 3, dtext, Enabled); -} + Canvas.ClearClipRect; end; begin |