From: kos Date: Thu, 12 May 2011 08:37:39 +0000 (+0900) Subject: add code what removing dreambox and enigma in renderString(). X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_openembedded;a=commitdiff_plain;h=360b3b1490c258c42707b80bd71c785d0a85986e add code what removing dreambox and enigma in renderString(). --- diff --git a/recipes/enigma2/enigma2.bb b/recipes/enigma2/enigma2.bb index 8dea6a5..4db31d4 100644 --- a/recipes/enigma2/enigma2.bb +++ b/recipes/enigma2/enigma2.bb @@ -110,6 +110,7 @@ SRC_URI_bm750 = "git://archive.vuplus.com/git/enigma2.git;protocol=http;branch=$ file://enigma2_vuplus_vfd.patch;patch=1;pnum=1 \ file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \ file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \ + file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \ file://MyriadPro-Regular.otf \ file://MyriadPro-Semibold.otf \ file://MyriadPro-SemiboldIt.otf \ @@ -122,6 +123,7 @@ SRC_URI_vusolo = "git://archive.vuplus.com/git/enigma2.git;protocol=http;branch= file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \ file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \ file://enigma2_vuplus_misc.patch;patch=1;pnum=1 \ + file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \ file://MyriadPro-Regular.otf \ file://MyriadPro-Semibold.otf \ file://MyriadPro-SemiboldIt.otf \ @@ -136,6 +138,7 @@ SRC_URI_vuuno = "git://archive.vuplus.com/git/enigma2.git;protocol=http;branch=$ file://enigma2_vuplus_vfd.patch;patch=1;pnum=1 \ file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \ file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \ + file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \ file://MyriadPro-Regular.otf \ file://MyriadPro-Semibold.otf \ file://MyriadPro-SemiboldIt.otf \ @@ -148,6 +151,7 @@ SRC_URI_vuultimo = "git://archive.vuplus.com/git/enigma2.git;protocol=http;branc file://enigma2_vuplus_vfd.patch;patch=1;pnum=1 \ file://enigma2_vuplus_skin.patch;patch=1;pnum=1 \ file://enigma2_vuplus_mediaplayer.patch;patch=1;pnum=1 \ + file://enigma2_vuplus_remove_dreambox_enigma.patch;patch=1;pnum=1 \ file://MyriadPro-Regular.otf \ file://MyriadPro-Semibold.otf \ file://MyriadPro-SemiboldIt.otf \ diff --git a/recipes/enigma2/enigma2/vuplus/enigma2_vuplus_remove_dreambox_enigma.patch b/recipes/enigma2/enigma2/vuplus/enigma2_vuplus_remove_dreambox_enigma.patch new file mode 100644 index 0000000..dd18695 --- /dev/null +++ b/recipes/enigma2/enigma2/vuplus/enigma2_vuplus_remove_dreambox_enigma.patch @@ -0,0 +1,40 @@ +diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp +index 9e17547..840b1eb 100644 +--- a/lib/gdi/font.cpp ++++ b/lib/gdi/font.cpp +@@ -487,6 +487,35 @@ int eTextPara::renderString(const char *string, int rflags) + { + singleLock s(ftlock); + ++ if(string && string[0]){ ++ char *ptr; ++ ptr = string; ++ while(1) ++ { ++ char *enigma = strcasestr(ptr, "enigma"); ++ if(enigma) ++ { ++ strncpy(enigma,"dvbapp",6); ++ ptr = enigma; ++ } ++ else ++ break; ++ } ++ ++ ptr = string; ++ while(1) ++ { ++ char *dreambox = strcasestr(ptr, "dreambox"); ++ if(dreambox) ++ { ++ strncpy(dreambox,"setopbox",8); ++ ptr = dreambox; ++ } ++ else ++ break; ++ } ++ } ++ + if (!current_font) + return -1; +