summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorbball <bball@octorok.org>2009-01-28 14:58:42 -0800
committerbball <bball@octorok.org>2009-01-28 14:58:42 -0800
commitfae9cc04c10572bdb687a0207a20c85ea1aa51b1 (patch)
tree804ff37f33170cc93fff6526b94d4f4290c7720d /patches
parent78599ca99ec812085474dff712c3e41bd1921c57 (diff)
downloadvdr-plugin-yaepghd-fae9cc04c10572bdb687a0207a20c85ea1aa51b1.tar.gz
vdr-plugin-yaepghd-fae9cc04c10572bdb687a0207a20c85ea1aa51b1.tar.bz2
- Incorporated Rolf's patch, see HISTORY for changes.
Diffstat (limited to 'patches')
-rw-r--r--patches/vdr-1.5.18-yaepg-core.diff66
-rw-r--r--patches/vdr-1.6.0-yaepghd.patch78
2 files changed, 78 insertions, 66 deletions
diff --git a/patches/vdr-1.5.18-yaepg-core.diff b/patches/vdr-1.5.18-yaepg-core.diff
deleted file mode 100644
index 8182423..0000000
--- a/patches/vdr-1.5.18-yaepg-core.diff
+++ /dev/null
@@ -1,66 +0,0 @@
-diff -Nru vdr-1.5.18/device.h vdr-1.5.18-yaepg/device.h
---- vdr-1.5.18/device.h 2008-02-23 05:13:04.000000000 -0800
-+++ vdr-1.5.18-yaepg/device.h 2009-01-24 15:32:19.000000000 -0800
-@@ -242,12 +242,12 @@
- ///< Direction (only the sign of Direction is evaluated, positive values
- ///< switch to higher channel numbers).
- private:
-- eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
-- ///< Sets the device to the given channel (general setup).
- protected:
- virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView);
- ///< Sets the device to the given channel (actual physical setup).
- public:
-+ eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
-+ ///< Sets the device to the given channel (general setup).
- static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
- ///< Returns the number of the current channel on the primary device.
- static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
-diff -Nru vdr-1.5.18/dvbosd.c vdr-1.5.18-yaepg/dvbosd.c
---- vdr-1.5.18/dvbosd.c 2007-09-16 01:55:54.000000000 -0700
-+++ vdr-1.5.18-yaepg/dvbosd.c 2009-01-24 15:32:19.000000000 -0800
-@@ -83,6 +83,10 @@
- shown = false;
- }
- }
-+ if (vidWin.bpp != 0) {
-+ Cmd(OSD_SetWindow, 0, 5);
-+ Cmd(OSD_Close);
-+ }
- }
-
- eOsdError cDvbOsd::CanHandleAreas(const tArea *Areas, int NumAreas)
-@@ -198,6 +202,11 @@
- Cmd(OSD_SetWindow, 0, i + 1);
- Cmd(OSD_MoveWindow, 0, Left() + Bitmap->X0(), Top() + Bitmap->Y0());
- }
-+ if (vidWin.bpp != 0) {
-+ Cmd(OSD_SetWindow, 0, 5);
-+ Cmd(OSD_OpenRaw, vidWin.bpp, vidWin.x1, vidWin.y1,
-+ vidWin.x2, vidWin.y2, (void *)0);
-+ }
- shown = true;
- }
- }
-diff -Nru vdr-1.5.18/osd.c vdr-1.5.18-yaepg/osd.c
---- vdr-1.5.18/osd.c 2007-10-12 05:38:36.000000000 -0700
-+++ vdr-1.5.18-yaepg/osd.c 2009-01-24 15:34:01.000000000 -0800
-@@ -730,6 +730,7 @@
- width = height = 0;
- level = Level;
- active = false;
-+ vidWin.bpp = 0;
- for (int i = 0; i < Osds.Size(); i++) {
- if (Osds[i]->level > level) {
- Osds.Insert(this, i);
-diff -Nru vdr-1.5.18/osd.h vdr-1.5.18-yaepg/osd.h
---- vdr-1.5.18/osd.h 2007-10-12 07:28:44.000000000 -0700
-+++ vdr-1.5.18-yaepg/osd.h 2009-01-24 15:32:19.000000000 -0800
-@@ -400,6 +400,7 @@
- ///< 7: vertical, falling, upper
- virtual void Flush(void);
- ///< Actually commits all data to the OSD hardware.
-+ tArea vidWin;
- };
-
- class cOsdProvider {
diff --git a/patches/vdr-1.6.0-yaepghd.patch b/patches/vdr-1.6.0-yaepghd.patch
new file mode 100644
index 0000000..426b709
--- /dev/null
+++ b/patches/vdr-1.6.0-yaepghd.patch
@@ -0,0 +1,78 @@
+diff -Nru vdr-1.6.0-vanilla/config.h vdr-1.6.0-yaepghd/config.h
+--- vdr-1.6.0-vanilla/config.h 2008-03-23 12:26:10.000000000 +0200
++++ vdr-1.6.0-yaepghd/config.h 2009-01-24 23:34:01.000000000 +0200
+@@ -30,6 +30,8 @@
+ #define APIVERSION "1.6.0"
+ #define APIVERSNUM 10600 // Version * 10000 + Major * 100 + Minor
+
++#define YAEPGHDVERSNUM 1
++
+ // When loading plugins, VDR searches them by their APIVERSION, which
+ // may be smaller than VDRVERSION in case there have been no changes to
+ // VDR header files since the last APIVERSION. This allows compiled
+diff -Nru vdr-1.6.0-vanilla/device.h vdr-1.6.0-yaepghd/device.h
+--- vdr-1.6.0-vanilla/device.h 2008-02-23 15:13:04.000000000 +0200
++++ vdr-1.6.0-yaepghd/device.h 2009-01-24 23:34:01.000000000 +0200
+@@ -242,12 +242,12 @@
+ ///< Direction (only the sign of Direction is evaluated, positive values
+ ///< switch to higher channel numbers).
+ private:
+- eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
+- ///< Sets the device to the given channel (general setup).
+ protected:
+ virtual bool SetChannelDevice(const cChannel *Channel, bool LiveView);
+ ///< Sets the device to the given channel (actual physical setup).
+ public:
++ eSetChannelResult SetChannel(const cChannel *Channel, bool LiveView);
++ ///< Sets the device to the given channel (general setup).
+ static int CurrentChannel(void) { return primaryDevice ? currentChannel : 0; }
+ ///< Returns the number of the current channel on the primary device.
+ static void SetCurrentChannel(const cChannel *Channel) { currentChannel = Channel ? Channel->Number() : 0; }
+diff -Nru vdr-1.6.0-vanilla/dvbosd.c vdr-1.6.0-yaepghd/dvbosd.c
+--- vdr-1.6.0-vanilla/dvbosd.c 2007-09-16 11:55:54.000000000 +0300
++++ vdr-1.6.0-yaepghd/dvbosd.c 2009-01-24 23:40:51.000000000 +0200
+@@ -53,6 +53,10 @@
+ osdMem = cap.val;
+ #endif
+ }
++ if (vidWin.bpp != 0) {
++ Cmd(OSD_SetWindow, 0, 5);
++ Cmd(OSD_Close);
++ }
+ }
+
+ cDvbOsd::~cDvbOsd()
+@@ -198,6 +202,10 @@
+ Cmd(OSD_SetWindow, 0, i + 1);
+ Cmd(OSD_MoveWindow, 0, Left() + Bitmap->X0(), Top() + Bitmap->Y0());
+ }
++ if (vidWin.bpp != 0) {
++ Cmd(OSD_SetWindow, 0, 5);
++ Cmd(OSD_OpenRaw, vidWin.bpp, vidWin.x1, vidWin.y1, vidWin.x2, vidWin.y2, NULL);
++ }
+ shown = true;
+ }
+ }
+diff -Nru vdr-1.6.0-vanilla/osd.c vdr-1.6.0-yaepghd/osd.c
+--- vdr-1.6.0-vanilla/osd.c 2007-10-12 15:38:36.000000000 +0300
++++ vdr-1.6.0-yaepghd/osd.c 2009-01-24 23:34:01.000000000 +0200
+@@ -730,6 +730,7 @@
+ width = height = 0;
+ level = Level;
+ active = false;
++ vidWin.bpp = 0;
+ for (int i = 0; i < Osds.Size(); i++) {
+ if (Osds[i]->level > level) {
+ Osds.Insert(this, i);
+diff -Nru vdr-1.6.0-vanilla/osd.h vdr-1.6.0-yaepghd/osd.h
+--- vdr-1.6.0-vanilla/osd.h 2007-10-12 17:28:44.000000000 +0300
++++ vdr-1.6.0-yaepghd/osd.h 2009-01-24 23:46:35.000000000 +0200
+@@ -269,6 +269,8 @@
+ int left, top, width, height;
+ uint level;
+ bool active;
++public:
++ tArea vidWin;
+ protected:
+ cOsd(int Left, int Top, uint Level);
+ ///< Initializes the OSD with the given coordinates.