summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {