Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-05 21:14:09 +0000
committerStijn Buys <ingar@osirion.org>2008-10-05 21:14:09 +0000
commite8b466caefa3b0b3b70458035d1c52e9fd9c0662 (patch)
tree8a7f019040f446237ce9cc72ee4181888eab2339 /src/render/text.cc
parentaaf2809dbb28fdd6dd7c09adf5c79c12f6f4926a (diff)
internally removes bitmaps/fonts prefix from render::Text
Diffstat (limited to 'src/render/text.cc')
-rw-r--r--src/render/text.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/render/text.cc b/src/render/text.cc
index c64e331..127605b 100644
--- a/src/render/text.cc
+++ b/src/render/text.cc
@@ -80,7 +80,10 @@ void Text::setcolor(const char color)
void Text::setfont(const char *texture, float width, float height)
{
- Textures::bind(texture, false);
+ std::string tf("bitmaps/fonts/");
+ tf.append(texture);
+
+ Textures::bind(tf, false);
text_fontwidth = width;
text_fontheight = height;