Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > a1611b26789599dae78220b2ff19e920 > files > 1

vdr-plugin-nordlichtsepg-0.8a-17mdv2010.0.src.rpm

#! /bin/sh /usr/share/dpatch/dpatch-run
## nordlichtsepg-0.8a_vdr153.dpatch by zulu at vdrportal.de
## http://www.vdr-portal.de/board/thread.php?postid=624285#post624285
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Changes for VDR >= 1.5.3.

@DPATCH@
diff -ruN nordlichtsepg-0.8a/nordlichtsepg.c nordlichtsepg-0.8a-patched/nordlichtsepg.c
--- nordlichtsepg-0.8a/nordlichtsepg.c	2006-03-21 14:41:24.000000000 +0100
+++ nordlichtsepg-0.8a-patched/nordlichtsepg.c	2007-06-19 10:27:25.000000000 +0200
@@ -114,8 +114,10 @@
 
 myMenuWhatsOn::~myMenuWhatsOn()
 {
+#if VDRVERSNUM < 10503
  if(Setup.UseSmallFont==2)cFont::SetFont(fontSml);
  else cFont::SetFont(fontOsd);
+#endif
 }
 
 void myMenuWhatsOn::LoadSchedules(int shift)
diff -ruN nordlichtsepg-0.8a/patchfont.c nordlichtsepg-0.8a-patched/patchfont.c
--- nordlichtsepg-0.8a/patchfont.c	2006-03-18 11:53:21.000000000 +0100
+++ nordlichtsepg-0.8a-patched/patchfont.c	2007-06-19 10:29:03.000000000 +0200
@@ -7,6 +7,7 @@
 // most of this function is from the epgsearch-plugin
 void PatchFont(eDvbFont DvbFont)
 {
+#if VDRVERSNUM < 10503
  const cFont *font = cFont::GetFont(DvbFont);
  int num_rows_global = font->Height();
  int num_rows = num_rows_global+2;
@@ -322,4 +323,5 @@
  }
  
  cFont::SetFont(DvbFont, font_data);
+#endif
 }