From f94354c1b5c02be567ebd376adfc720af6ec1b8f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Sat, 29 Jan 2011 18:26:02 +0100 Subject: Fixed set_position in Text. --- text.cpp | 6 +----- 1 file changed, 1 insertion(+), 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() { -- cgit v1.2.3