summaryrefslogtreecommitdiff
path: root/VDR.upgrade-patch
diff options
context:
space:
mode:
authorTobias Grimm <tobias@e-tobi.loc>2008-12-13 10:52:59 +0100
committerTobias Grimm <tobias@e-tobi.loc>2008-12-13 10:52:59 +0100
commit18dbe92306e0c9e1b1513e4cfae603369fbacd80 (patch)
tree6fcb7e78ac8cb5026fab56cfbe3d4ead31fcad9d /VDR.upgrade-patch
parentb4047ea57428a788456ecb02bc3fc6c5d83bf232 (diff)
downloadvdr-plugin-ttxtsubs-0.0.3d.tar.gz
vdr-plugin-ttxtsubs-0.0.3d.tar.bz2
- IMORTANT! Needs and upgrade to the patch! See README!v0.0.3d
- Improved the OSD hooks to be more compatible with other plugins - Added a primitive Service Information caching mechanism to speed up channel switching (will not refresh if channels are changed, will be reset on VDR restart)
Diffstat (limited to 'VDR.upgrade-patch')
-rw-r--r--VDR.upgrade-patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/VDR.upgrade-patch b/VDR.upgrade-patch
new file mode 100644
index 0000000..1f4bd96
--- /dev/null
+++ b/VDR.upgrade-patch
@@ -0,0 +1,23 @@
+--- old-osd.c 2003-07-16 05:39:36.000000000 +0200
++++ osd.c 2003-07-16 05:38:35.000000000 +0200
+@@ -63,6 +63,10 @@ void cOsd::SetColor(eDvbColor colorFg, e
+
+ cOsdBase *cOsd::OpenRaw(int x, int y)
+ {
++#ifdef VDRTTXTSUBSHOOKS
++ // OSD_HOOK_2 - Information to Checkpatch.sh
++ cVDRTtxtsubsHookListener::Hook()->HideOSD();
++#endif
+ #ifdef DEBUG_OSD
+ return NULL;
+ #else
+@@ -97,9 +101,6 @@ void cOsd::Open(int w, int h)
+ d *= lineHeight;
+ int x = (720 - w + charWidth) / 2; //TODO PAL vs. NTSC???
+ int y = (576 - Setup.OSDheight * lineHeight) / 2 + d;
+-#ifdef VDRTTXTSUBSHOOKS
+- cVDRTtxtsubsHookListener::Hook()->HideOSD();
+-#endif
+ //XXX
+ osd = OpenRaw(x, y);
+ //XXX TODO this should be transferred to the places where the individual windows are requested (there's too much detailed knowledge here!)