enigma.cpp: Don't load pal.png
authorMike Looijmans <milo-software@users.sourceforge.net>
Sat, 17 Sep 2011 16:00:27 +0000 (18:00 +0200)
committerMike Looijmans <milo-software@users.sourceforge.net>
Sat, 17 Sep 2011 16:39:10 +0000 (18:39 +0200)
I think it's an 8-bit framebuffer remnant, no need to load a huge
PNG file just to set a palette that's never used.

main/enigma.cpp

index 1cdd867..cce9e76 100644 (file)
@@ -179,13 +179,15 @@ int main(int argc, char **argv)
        dsk.setDC(my_dc);
        dsk_lcd.setDC(my_lcd_dc);
 
+#ifdef I_THINK_THIS_IS_FOR_OLD_HARDWARE_WITH_8_BIT_FRAMEBUFFERS
        ePtr<gPixmap> m_pm;
        loadPNG(m_pm, eEnv::resolve("${datadir}/enigma2/skin_default/pal.png").c_str());
        if (!m_pm)
        {
-               eFatal("pal.png not found!");
+               eDebug("pal.png not found!");
        } else
                dsk.setPalette(*m_pm);
+#endif
 
        dsk.setBackgroundColor(gRGB(0,0,0,0xFF));
 #endif