From 0c7a1466e8c2c2dd6e15779368c87b62b2da601f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Oct 2012 13:24:01 +0300 Subject: Add text fileds cursor (caret) color. New theme colors: CARET --- src/guichan/widgets/textfield.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/guichan/widgets') 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) -- cgit v1.2.3-70-g09d2