add code what removing dreambox and enigma in renderString().
authorkos <hanlareum@gmail.com>
Thu, 12 May 2011 08:37:39 +0000 (17:37 +0900)
committerkos <hanlareum@gmail.com>
Thu, 12 May 2011 08:37:39 +0000 (17:37 +0900)
recipes/enigma2/enigma2.bb
recipes/enigma2/enigma2/vuplus/enigma2_vuplus_remove_dreambox_enigma.patch [new file with mode: 0644]

index 8dea6a5..4db31d4 100644 (file)
@@ -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 (file)
index 0000000..dd18695
--- /dev/null
@@ -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;