aboutsummaryrefslogtreecommitdiff
path: root/main/enigma-gdi.cpp
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2010-10-28 20:29:01 +0200
committerAndreas Oberritter <obi@opendreambox.org>2010-11-16 17:15:37 +0100
commit879d60c88e24c2c3f2aab9dff73192c901f63f31 (patch)
tree73bebea0db9c4d22d2de42cc1cd7303b01dc8943 /main/enigma-gdi.cpp
parent6b59a3472e24f35fcaac669a167b1a4fae207556 (diff)
downloadenigma2-879d60c88e24c2c3f2aab9dff73192c901f63f31.tar.gz
enigma2-879d60c88e24c2c3f2aab9dff73192c901f63f31.zip
use eEnv::resolve() / eEnv.resolve()
Diffstat (limited to 'main/enigma-gdi.cpp')
-rw-r--r--main/enigma-gdi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/enigma-gdi.cpp b/main/enigma-gdi.cpp
index 144e2d3a..328fba44 100644
--- a/main/enigma-gdi.cpp
+++ b/main/enigma-gdi.cpp
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <libsig_comp.h>
#include <lib/base/ebase.h>
+#include <lib/base/eenv.h>
#include <lib/base/eerror.h>
#include <lib/base/init.h>
#include <lib/base/init_num.h>
@@ -67,7 +68,7 @@ int main()
pal[a | 0x10] = (0x111111 * a) | 0xFF;
p.setPalette(pal, 0, 256);
- fontRenderClass::getInstance()->AddFont(FONTDIR "/arial.ttf", "Regular", 100);
+ fontRenderClass::getInstance()->AddFont(eEnv::resolve("${datadir}/fonts/arial.ttf"), "Regular", 100);
p.resetClip(gRegion(eRect(0, 0, 720, 576)));