summaryrefslogtreecommitdiff
path: root/src/guichan/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-04 13:24:01 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-04 13:24:01 +0300
commit0c7a1466e8c2c2dd6e15779368c87b62b2da601f (patch)
tree24be0979382c8844c68365cac1d6de046da16681 /src/guichan/widgets
parenteed0bccd09e5708eb9b629c14f69022e362f4aa4 (diff)
downloadmanaplus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.gz
manaplus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.bz2
manaplus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.tar.xz
manaplus-0c7a1466e8c2c2dd6e15779368c87b62b2da601f.zip
Add text fileds cursor (caret) color.
New theme colors: CARET
Diffstat (limited to 'src/guichan/widgets')
-rw-r--r--src/guichan/widgets/textfield.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/guichan/widgets/textfield.cpp b/src/guichan/widgets/textfield.cpp
index 7a2bde46e..52aefee54 100644
--- a/src/guichan/widgets/textfield.cpp
+++ b/src/guichan/widgets/textfield.cpp
@@ -96,14 +96,6 @@ namespace gcn
void TextField::drawCaret(Graphics* graphics, int x)
{
- // Check the current clip area as a clip area with a different
- // size than the widget might have been pushed (which is the
- // case in the draw method when we push a clip area after we have
- // drawn a border).
- const Rectangle clipArea = graphics->getCurrentClipArea();
-
- graphics->setColor(mForegroundColor);
- graphics->drawLine(x, clipArea.height - 2, x, 1);
}
void TextField::mousePressed(MouseEvent& mouseEvent)