summaryrefslogtreecommitdiff
path: root/src/guichan
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan')
-rw-r--r--src/guichan/include/guichan/widgets/textbox.hpp2
-rw-r--r--src/guichan/widgets/textbox.cpp26
2 files changed, 3 insertions, 25 deletions
diff --git a/src/guichan/include/guichan/widgets/textbox.hpp b/src/guichan/include/guichan/widgets/textbox.hpp
index e220bf46a..062ab9c8a 100644
--- a/src/guichan/include/guichan/widgets/textbox.hpp
+++ b/src/guichan/include/guichan/widgets/textbox.hpp
@@ -230,7 +230,7 @@ namespace gcn
// Inherited from Widget
- virtual void draw(Graphics* graphics);
+// virtual void draw(Graphics* graphics);
virtual void fontChanged();
diff --git a/src/guichan/widgets/textbox.cpp b/src/guichan/widgets/textbox.cpp
index 66441894b..e743ef64f 100644
--- a/src/guichan/widgets/textbox.cpp
+++ b/src/guichan/widgets/textbox.cpp
@@ -118,33 +118,11 @@ namespace gcn
adjustSize();
}
+/*
void TextBox::draw(Graphics* graphics)
{
- BLOCK_START("TextBox::draw")
- if (mOpaque)
- {
- graphics->setColor(mBackgroundColor);
- graphics->fillRectangle(Rectangle(0, 0, getWidth(), getHeight()));
- }
-
- if (isFocused() && isEditable())
- {
- drawCaret(graphics, getFont()->getWidth(
- mTextRows[mCaretRow].substr(0, mCaretColumn)),
- mCaretRow * getFont()->getHeight());
- }
-
- graphics->setColor(mForegroundColor);
- graphics->setFont(getFont());
-
- for (size_t i = 0, sz = mTextRows.size(); i < sz; i++)
- {
- // Move the text one pixel so we can have a caret before a letter.
- graphics->drawText(mTextRows[i], 1,
- static_cast<int>(i * getFont()->getHeight()));
- }
- BLOCK_END("TextBox::draw")
}
+*/
void TextBox::drawCaret(Graphics* graphics, int x, int y)
{