summaryrefslogtreecommitdiff
path: root/src/guichan
diff options
context:
space:
mode:
Diffstat (limited to 'src/guichan')
-rw-r--r--src/guichan/graphics.cpp21
-rw-r--r--src/guichan/include/guichan/graphics.hpp14
2 files changed, 2 insertions, 33 deletions
diff --git a/src/guichan/graphics.cpp b/src/guichan/graphics.cpp
index 756b5a9b5..ce8ef5f18 100644
--- a/src/guichan/graphics.cpp
+++ b/src/guichan/graphics.cpp
@@ -152,27 +152,10 @@ namespace gcn
mFont = font;
}
+/*
void Graphics::drawText(const std::string& text, int x, int y,
Alignment alignment)
{
- FUNC_BLOCK("Graphics::drawText", 1)
- if (!mFont)
- throw GCN_EXCEPTION("No font set.");
-
- switch (alignment)
- {
- case LEFT:
- mFont->drawString(this, text, x, y);
- break;
- case CENTER:
- mFont->drawString(this, text, x
- - mFont->getWidth(text) / 2, y);
- break;
- case RIGHT:
- mFont->drawString(this, text, x - mFont->getWidth(text), y);
- break;
- default:
- throw GCN_EXCEPTION("Unknown alignment.");
- }
}
+*/
}
diff --git a/src/guichan/include/guichan/graphics.hpp b/src/guichan/include/guichan/graphics.hpp
index 291e01766..d8d8cdf15 100644
--- a/src/guichan/include/guichan/graphics.hpp
+++ b/src/guichan/include/guichan/graphics.hpp
@@ -267,20 +267,6 @@ namespace gcn
*/
virtual void setFont(Font* font);
- /**
- * Draws text.
- *
- * @param text The text to draw.
- * @param x The x coordinate where to draw the text.
- * @param y The y coordinate where to draw the text.
- * @param alignment The alignemnt to use when drawing.
- * @throws Exception when no font has been set.
- */
- virtual void drawText(const std::string& text,
- int x,
- int y,
- Alignment alignment = LEFT);
-
protected:
/**
* Holds the clip area stack.