diff options
author | 2008-08-10 18:26:56 +0000 | |
---|---|---|
committer | 2008-08-10 18:26:56 +0000 | |
commit | 68ee88253230774fd5fc3979869e3c9d0321c709 (patch) | |
tree | 82baf92b90dd1335211b5b860e09dbf54b697a6d /media-plugins/vdr-graphtft/files | |
parent | Add ~mips, bug #226043 (diff) | |
download | historical-68ee88253230774fd5fc3979869e3c9d0321c709.tar.gz historical-68ee88253230774fd5fc3979869e3c9d0321c709.tar.bz2 historical-68ee88253230774fd5fc3979869e3c9d0321c709.zip |
versions bump
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'media-plugins/vdr-graphtft/files')
-rw-r--r-- | media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.21_alpha-gentoo.diff | 111 |
1 files changed, 111 insertions, 0 deletions
diff --git a/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.21_alpha-gentoo.diff b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.21_alpha-gentoo.diff new file mode 100644 index 000000000000..85bf3d5a091d --- /dev/null +++ b/media-plugins/vdr-graphtft/files/vdr-graphtft-0.1.21_alpha-gentoo.diff @@ -0,0 +1,111 @@ +diff -Naur graphtft-0.1.21.alpha.orig/dfbrenderer/dfbrenderer.c graphtft-0.1.21.alpha/dfbrenderer/dfbrenderer.c +--- graphtft-0.1.21.alpha.orig/dfbrenderer/dfbrenderer.c 2008-08-10 18:46:52.435184689 +0200 ++++ graphtft-0.1.21.alpha/dfbrenderer/dfbrenderer.c 2008-08-10 18:48:51.652846119 +0200 +@@ -383,7 +383,7 @@ + else + { + const char* tmp = themePath.c_str(); +- asprintf(&fpath, "%s/graphTFT/themes/%s/%s", confPath.c_str(), tmp, fname); ++ asprintf(&fpath, "%s/themes/%s/%s", confPath.c_str(), tmp, fname); + } + + tell(4,"creating imageprovider for %s\n", fpath); +@@ -453,7 +453,7 @@ + + if (!fontCache.Contains(FontFaceSize(fontName, fontSize))) + { +- asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), fontName); ++ asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), fontName); + + tell(4,"creating font for %s\n", fpath); + +@@ -514,7 +514,7 @@ + + if (!fontCache.Contains(FontFaceSize(font_name, size))) + { +- asprintf(&fpath, "%s/graphTFT/fonts/%s.ttf", confPath.c_str(), font_name); ++ asprintf(&fpath, "%s/fonts/%s.ttf", confPath.c_str(), font_name); + + tell(4,"creating font for %s\n", fpath); + +diff -Naur graphtft-0.1.21.alpha.orig/dspitems.c graphtft-0.1.21.alpha/dspitems.c +--- graphtft-0.1.21.alpha.orig/dspitems.c 2008-08-10 18:46:52.438517522 +0200 ++++ graphtft-0.1.21.alpha/dspitems.c 2008-08-10 18:52:55.997229669 +0200 +@@ -892,7 +892,7 @@ + if (p[0] != '/') + { + p = string(GraphTFTSetup.PluginConfPath) +- + "/graphTFT/themes/" ++ + "/themes/" + + string(theTheme->getDir()) + + "/" + p; + } +diff -Naur graphtft-0.1.21.alpha.orig/graphtft.c graphtft-0.1.21.alpha/graphtft.c +--- graphtft-0.1.21.alpha.orig/graphtft.c 2008-08-10 18:46:52.445181748 +0200 ++++ graphtft-0.1.21.alpha/graphtft.c 2008-08-10 18:51:27.951263711 +0200 +@@ -20,6 +20,8 @@ + #include <graphtft.h> + #include <span.h> + ++#define DATA_DIR "/usr/share/vdr/graphTFT" ++ + //*************************************************************************** + // cGraphTFTMenu + //*************************************************************************** +@@ -260,14 +262,7 @@ + + #endif + +- // try to get the config dir +- +- if (!ConfigDirectory()) +- return false; +- +- // init +- +- GraphTFTSetup.PluginConfPath = strdup(ConfigDirectory()); ++ GraphTFTSetup.PluginConfPath = strdup(DATA_DIR); + + #if APIVERSNUM < 10507 + RegisterI18n(Phrases); +@@ -283,7 +278,7 @@ + if (loadThemes() != 0) + return false; + +- return display->Init(_dev, ConfigDirectory(), port); ++ return display->Init(_dev, DATA_DIR, port); + } + + //*************************************************************************** +@@ -299,8 +294,8 @@ + + // look for the themes in the config directory + +- asprintf(&buffer, "find %s/graphTFT/themes -follow -type f -name '*.theme' | sort", +- ConfigDirectory()); ++ asprintf(&buffer, "find %s/themes -follow -type f -name '*.theme' | sort", ++ DATA_DIR); + + p = popen(buffer, "r"); + +diff -Naur graphtft-0.1.21.alpha.orig/imlibrenderer/imlibrenderer.c graphtft-0.1.21.alpha/imlibrenderer/imlibrenderer.c +--- graphtft-0.1.21.alpha.orig/imlibrenderer/imlibrenderer.c 2008-08-10 18:46:52.515173335 +0200 ++++ graphtft-0.1.21.alpha/imlibrenderer/imlibrenderer.c 2008-08-10 18:52:21.979320235 +0200 +@@ -53,7 +53,7 @@ + + // font + +- std::ostringstream path; path << confPath.c_str() << "/graphTFT/fonts/"; ++ std::ostringstream path; path << confPath.c_str() << "/fonts/"; + imlib_add_path_to_font_path(path.str().c_str()); + + // new image +@@ -136,7 +136,7 @@ + if (fname[0] == '/') + path << fname; + else +- path << confPath << "/graphTFT/themes/" << themePath << "/" << fname; ++ path << confPath << "/themes/" << themePath << "/" << fname; + + if (!fileExists(path.str().c_str())) + { |