#! /bin/sh /usr/share/dpatch/dpatch-run ## 13_graphtft-0.0.8-1.3.38.dpatch by Thomas Günther ## http://toms-cafe.de/vdr/download/graphtft-0.0.8-1.3.38.diff ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Changes for VDR >= 1.3.38. @DPATCH@ --- graphtft-0.0.8/display.h +++ graphtft-0.0.8/display.h @@ -140,8 +140,13 @@ virtual void OsdChannel(const char *Text); virtual void OsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle); virtual void SetVolume(int Volume, bool Absolute); +#if VDRVERSNUM >= 10338 + virtual void Replaying(const cControl *Control, const char *Name, const char *FileName, bool On); + virtual void Recording(const cDevice *Device, const char *Name, const char *FileName, bool On); +#else virtual void Recording(const cDevice *Device, const char *Name); virtual void Replaying(const cControl *Control, const char *Name); +#endif virtual void OsdStatusMessage(const char *Message); virtual void OsdTitle(const char *Title); virtual void OsdItem(const char *Text, int Index); --- graphtft-0.0.8/display.c +++ graphtft-0.0.8/display.c @@ -454,10 +454,19 @@ } } +#if VDRVERSNUM >= 10338 +void cGraphTFTDisplay::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On) +#else void cGraphTFTDisplay::Recording(const cDevice *Device, const char *Name) +#endif { d(5, "Recording %s to %p\n", Name, Device); +#if VDRVERSNUM >= 10338 + if (On) { + if (Name == NULL) Name = ""; +#else if (Name != NULL) { +#endif RecordingInfo info; cMutexLock lock(&_mutex); info.device = Device; @@ -483,10 +492,19 @@ } } +#if VDRVERSNUM >= 10338 +void cGraphTFTDisplay::Replaying(const cControl *Control, const char *Name, const char *FileName, bool On) +#else void cGraphTFTDisplay::Replaying(const cControl *Control, const char *Name) +#endif { d(5, "Replaying %s from %p\n", Name, Control); +#if VDRVERSNUM >= 10338 + if (On) { + if (Name == NULL) Name = ""; +#else if (Name != NULL) { +#endif cMutexLock lock(&_mutex); _replay.control = (cControl *)Control; _replay.lastMode = _mode;