summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-29 18:26:02 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-29 18:26:02 +0100
commitf94354c1b5c02be567ebd376adfc720af6ec1b8f (patch)
tree2727339143c04ce13f6baeedddc657d023b99179
parentfc8a1377bece7f8524f1207c05a81d8362d0ee57 (diff)
Fixed set_position in Text.
-rw-r--r--text.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/text.cpp b/text.cpp
index 82aa606..cb7dbef 100644
--- a/text.cpp
+++ b/text.cpp
@@ -26,11 +26,7 @@ void Text::set_text(std::string str) {
}
void Text::set_position(int x, int y) {
- float wf = (float)renderwindow->GetWidth() / 1024;
- float hf = (float)renderwindow->GetHeight() / 768;
- float xf = x * wf;
- float yf = y * hf;
- string.SetPosition(xf, yf);
+ string.SetPosition(x, y);
}
void Text::subtract_height() {