X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4c1d83d373b4a0737da668945d1ddb3278b6c3b7..1b2f75903244b6c03e1f123533d4385c0c271c78:/main/enigma.cpp diff --git a/main/enigma.cpp b/main/enigma.cpp index 4f3287f5..3a728b8d 100644 --- a/main/enigma.cpp +++ b/main/enigma.cpp @@ -1,3 +1,8 @@ +#undef WITH_SDL +#ifdef WITH_SDL +#error +#define SDLDC +#endif #include #include #include @@ -9,7 +14,8 @@ #include #include -#ifdef SDLDC +#ifdef WITH_SDL +#error #include #endif #include @@ -91,6 +97,8 @@ void keyEvent(const eRCKey &key) #include #include #include +#include +#include class eMain: public eApplication, public Object { @@ -98,9 +106,10 @@ class eMain: public eApplication, public Object ePtr m_mgr; ePtr m_dvbdb; - + ePtr m_locale_time_handler; ePtr m_scan; - + ePtr m_epgcache; + public: eMain() { @@ -109,7 +118,8 @@ public: /* TODO: put into init */ m_dvbdb = new eDVBDB(); m_mgr = new eDVBResourceManager(); - + m_locale_time_handler = new eDVBLocalTimeHandler(); + m_epgcache = new eEPGCache(); m_mgr->setChannelList(m_dvbdb); // m_scan = new eComponentScan(); @@ -145,7 +155,7 @@ int main(int argc, char **argv) gFBDC::getInstance(my_dc); #endif - fontRenderClass::getInstance()->AddFont("/usr/share/fonts/arial.ttf", "Arial", 100); + fontRenderClass::getInstance()->AddFont(FONTDIR "/arial.ttf", "Arial", 100); eWidgetDesktop dsk(eSize(720, 576)); @@ -162,7 +172,7 @@ int main(int argc, char **argv) } else dsk.setPalette(*m_pm); - dsk.setBackgroundColor(gRGB(0,0,0,0)); + dsk.setBackgroundColor(gRGB(0,0,0,0xFF)); #endif /* redrawing is done in an idle-timer, so we have to set the context */