vdr/vdr-plugin-subtitles/debian/patches 00list 01_debian.dpatch 99_transparency_percentage.dpatch
Darren Salt
pkg-vdr-dvb-changes@lists.alioth.debian.org
Mon, 04 Apr 2005 22:53:38 +0000
Update of /cvsroot/pkg-vdr-dvb/vdr/vdr-plugin-subtitles/debian/patches
In directory haydn:/tmp/cvs-serv14519/debian/patches
Added Files:
00list 01_debian.dpatch 99_transparency_percentage.dpatch
Log Message:
Initial import
--- NEW FILE: 99_transparency_percentage.dpatch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 99_transparency_percentage.dpatch by Darren Salt <linux@youmustbejoking.demon.co.uk>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: % transparency. I find 0..10 a bit coarse.
@DPATCH@
diff -urNad vdr-plugin-subtitles-0.3.6/clut.c /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/clut.c
--- vdr-plugin-subtitles-0.3.6/clut.c 2004-11-23 18:59:01.000000000 +0000
+++ /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/clut.c 2004-12-06 22:36:28.000000000 +0000
@@ -225,9 +225,9 @@
{
value = yuv2rgb(y,cb,cr);
if (value)
- value |= (((10-gSubtitlesConfiguration.fgTransparency) * (255 - t)) / 10) << 24;
+ value |= (((100-gSubtitlesConfiguration.fgTransparency) * (255 - t)) / 100) << 24;
else
- value |= (((10-gSubtitlesConfiguration.bgTransparency) * (255 - t)) / 10) << 24;
+ value |= (((100-gSubtitlesConfiguration.bgTransparency) * (255 - t)) / 100) << 24;
}
diff -urNad vdr-plugin-subtitles-0.3.6/i18n.c /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/i18n.c
--- vdr-plugin-subtitles-0.3.6/i18n.c 2004-11-23 18:59:01.000000000 +0000
+++ /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/i18n.c 2004-12-06 22:36:28.000000000 +0000
@@ -371,7 +371,7 @@
"", // Hrvatski (Croatian)
"", // Eesti
},
- { "Background Transparency", // English
+ { "Background Transparency %", // English
"", // Deutsch
"", // Slovenski
"", // Italiano
@@ -379,7 +379,7 @@
"", // Português
"", // Français
"", // Norsk
- "Taustan läpinäkyvyys", // suomi
+ "Taustan läpinäkyvyys %", // suomi
"", // Polski
"", // Español
"", // ÅëëçíéêÜ (Greek)
@@ -391,7 +391,7 @@
"", // Hrvatski (Croatian)
"", // Eesti
},
- { "Foreground Transparency", // English
+ { "Foreground Transparency %", // English
"", // Deutsch
"", // Slovenski
"", // Italiano
diff -urNad vdr-plugin-subtitles-0.3.6/menu.c /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/menu.c
--- vdr-plugin-subtitles-0.3.6/menu.c 2004-11-23 18:59:01.000000000 +0000
+++ /tmp/dpep.XeqtmT/vdr-plugin-subtitles-0.3.6/menu.c 2004-12-06 22:36:55.000000000 +0000
@@ -70,8 +70,8 @@
Add(new cMenuEditBoolItem(tr("DXR3 Compability"), &gSubtitlesConfiguration.dxr3comp, tr("no"), tr("yes")));
Add(new cMenuEditBoolItem(tr("Show Language Selector"), &gSubtitlesConfiguration.mainmenu, tr("no"), tr("yes")));
- Add(new cMenuEditIntItem(tr("Background Transparency"), &gSubtitlesConfiguration.bgTransparency, 0, 10));
- Add(new cMenuEditIntItem(tr("Foreground Transparency"), &gSubtitlesConfiguration.fgTransparency, 0, 9));
+ Add(new cMenuEditIntItem(tr("Background Transparency %"), &gSubtitlesConfiguration.bgTransparency, 0, 100));
+ Add(new cMenuEditIntItem(tr("Foreground Transparency %"), &gSubtitlesConfiguration.fgTransparency, 0, 99));
SetCurrent(Get(current));
Display();
--- NEW FILE: 00list ---
01_debian
99_transparency_percentage
--- NEW FILE: 01_debian.dpatch ---
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_debian.dpatch by Darren Salt <linux@youmustbejoking.demon.co.uk>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Packaging bits.
@DPATCH@
--- vdr-plugin-subtitles-0.3.5.orig/Make.config
+++ vdr-plugin-subtitles-0.3.5/Make.config
@@ -0,0 +1,5 @@
+DVBDIR=.
+VDRDIR=/usr/include/vdr
+LIBDIR=$(DESTDIR)/usr/lib/vdr/plugins
+VIDEODIR=/video
+INCLUDES=-I/usr/include/vdr
--- vdr-plugin-subtitles-0.3.5.orig/Makefile
+++ vdr-plugin-subtitles-0.3.5/Makefile
@@ -27,7 +27,7 @@
### Allow user defined options to overwrite defaults:
--include $(VDRDIR)/Make.config
+-include Make.config
### The version number of VDR (taken from VDR's "config.h"):
@@ -72,7 +72,9 @@
libvdr-$(PLUGIN).so: $(OBJS)
$(CXX) $(CXXFLAGS) -shared $(OBJS) -o $@
- @cp $@ $(LIBDIR)/$@.$(VDRVERSION)
+
+install: libvdr-$(PLUGIN).so
+ install -m755 $< $(LIBDIR)/$<.$(VDRVERSION)
dist: clean
@-rm -rf $(TMPDIR)/$(ARCHIVE)