summaryrefslogtreecommitdiff
path: root/src/gui/textfield.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-04-07 15:23:07 +0000
commit92950d2f309550e21b33d851ef9bbf7906ce5e50 (patch)
tree18a6d2539c6e004e52cbebb1e61d8f8f0344f9a0 /src/gui/textfield.cpp
parent3f3ba5f3e18b0a5093e7275aee574ecd6f293ec6 (diff)
downloadmana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.gz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.bz2
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.tar.xz
mana-92950d2f309550e21b33d851ef9bbf7906ce5e50.zip
Upgraded to Guichan 0.8.0 (merge from guichan-0.8 branch, except for
gcn::TabbedArea usage)
Diffstat (limited to 'src/gui/textfield.cpp')
-rw-r--r--src/gui/textfield.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/textfield.cpp b/src/gui/textfield.cpp
index 5b875da3..8db720cf 100644
--- a/src/gui/textfield.cpp
+++ b/src/gui/textfield.cpp
@@ -40,7 +40,7 @@ ImageRect TextField::skin;
TextField::TextField(const std::string& text):
gcn::TextField(text)
{
- setBorderSize(2);
+ setFrameSize(2);
if (instances == 0)
{
@@ -93,10 +93,10 @@ void TextField::draw(gcn::Graphics *graphics)
graphics->drawText(mText, 1 - mXScroll, 1);
}
-void TextField::drawBorder(gcn::Graphics *graphics)
+void TextField::drawFrame(gcn::Graphics *graphics)
{
int w, h, bs;
- bs = getBorderSize();
+ bs = getFrameSize();
w = getWidth() + bs * 2;
h = getHeight() + bs * 2;