blob: 1f4bd9659b9bf80a291528d29495281fa38aefa7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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!)
|