make DieMade happy (show current path in Channellist titlebar)
[enigma2.git] / main / enigma.cpp
index a3770b863448ba95ab581767a113e9123c8ca720..2c719225b6f3ca2ed23d343e5a09faca4ac66fa4 100644 (file)
@@ -1,7 +1,4 @@
-#undef WITH_SDL
-
 #ifdef WITH_SDL
-#error
 #define SDLDC
 #endif
 
@@ -19,7 +16,6 @@
 #include <lib/gdi/glcddc.h>
 
 #ifdef WITH_SDL
-#error
 #include <lib/gdi/sdl.h>
 #endif
 #include <lib/gdi/font.h> 
@@ -157,8 +153,6 @@ int main(int argc, char **argv)
        ePython python;
        eMain main;
        
-       int double_buffer = 0;
-
 #if 1
 #ifdef SDLDC
        ePtr<gSDLDC> my_dc;
@@ -167,13 +161,23 @@ int main(int argc, char **argv)
        ePtr<gFBDC> my_dc;
        gFBDC::getInstance(my_dc);
        
-       double_buffer = my_dc->haveDoubleBuffering();
+       int double_buffer = my_dc->haveDoubleBuffering();
 #endif
 
        ePtr<gLCDDC> my_lcd_dc;
        gLCDDC::getInstance(my_lcd_dc);
 
        fontRenderClass::getInstance()->AddFont(FONTDIR "/md_khmurabi_10.ttf", "Regular", 100);
+       fontRenderClass::getInstance()->AddFont(FONTDIR "/ae_AlMateen.ttf", "Replacement", 90);
+       eTextPara::setReplacementFont("Replacement");
+       
+                       /* some characters are wrong in the regular font, force them to use the replacement font */
+       for (int i = 0x60c; i <= 0x66d; ++i)
+               eTextPara::forceReplacementGlyph(i);
+       eTextPara::forceReplacementGlyph(0xfdf2);
+       for (int i = 0xfe80; i < 0xff00; ++i)
+               eTextPara::forceReplacementGlyph(i);
+       
 
        eWidgetDesktop dsk(eSize(720, 576));
        eWidgetDesktop dsk_lcd(eSize(132, 64));