diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-29 18:26:02 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-29 18:26:02 +0100 |
commit | f94354c1b5c02be567ebd376adfc720af6ec1b8f (patch) | |
tree | 2727339143c04ce13f6baeedddc657d023b99179 | |
parent | fc8a1377bece7f8524f1207c05a81d8362d0ee57 (diff) |
Fixed set_position in Text.
-rw-r--r-- | text.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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() { |