X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=main%2Fenigma-gdi.cpp;h=f21c8701e96bfcfc6b8937caedbb54376d223218;hp=d0010adf9be84a19d75958eb7c2dbf2febb54d03;hb=023864f9fe2db4ef8f74057b1afb21446b6b7ef7;hpb=70b451b323d094329a5cb8c9022a30a3af67f11c diff --git a/main/enigma-gdi.cpp b/main/enigma-gdi.cpp index d0010ad..f21c870 100644 --- a/main/enigma-gdi.cpp +++ b/main/enigma-gdi.cpp @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -8,7 +9,7 @@ #include #include -#include +#include #include #include @@ -52,9 +53,8 @@ int main() eInit init; init.setRunlevel(eAutoInitNumbers::main); - ePtr my_dc; - gFBDC::getInstance(my_dc); -#if 1 + ePtr my_dc; + gMainDC::getInstance(my_dc); gPainter p(my_dc); @@ -68,7 +68,7 @@ int main() pal[a | 0x10] = (0x111111 * a) | 0xFF; p.setPalette(pal, 0, 256); - fontRenderClass::getInstance()->AddFont("/dbox2/cdkroot/share/fonts/arial.ttf", "Arial", 100); + fontRenderClass::getInstance()->AddFont(eEnv::resolve("${datadir}/fonts/arial.ttf"), "Regular", 100); p.resetClip(gRegion(eRect(0, 0, 720, 576))); @@ -102,7 +102,7 @@ int main() p.setBackgroundColor(gColor(0x1f)); p.setForegroundColor(gColor(0x10)); - ePtr fnt = new gFont("Arial", 70); + ePtr fnt = new gFont("Regular", 70); p.setFont(fnt); p.renderText(eRect(100, 100, 500, 200), "Hello welt!");