summaryrefslogtreecommitdiff
path: root/setup_menu.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-09-01 08:47:04 +0000
committerphintuka <phintuka>2007-09-01 08:47:04 +0000
commitf8e707a19dccf66240236a87f69c1a6f5942852c (patch)
treed64b8972339b8a97bfa3b20e7fa954a7323a5c98 /setup_menu.c
parent3c57720c1ccb9626c4b3c31bd7b4e2a298baa6be (diff)
downloadxineliboutput-f8e707a19dccf66240236a87f69c1a6f5942852c.tar.gz
xineliboutput-f8e707a19dccf66240236a87f69c1a6f5942852c.tar.bz2
Fix OSD compilation with VDR 1.5.9.
Note: layered OSD still won't work as expected. (Thanks to Petri Helin and Halim Sahin)
Diffstat (limited to 'setup_menu.c')
-rw-r--r--setup_menu.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/setup_menu.c b/setup_menu.c
index 77a2ea28..7f77046a 100644
--- a/setup_menu.c
+++ b/setup_menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: setup_menu.c,v 1.34 2007-06-19 06:06:22 phintuka Exp $
+ * $Id: setup_menu.c,v 1.35 2007-09-01 08:47:04 phintuka Exp $
*
*/
@@ -1537,7 +1537,11 @@ void cTestGrayscale::Show()
int i;
if(!m_Osd)
+#if VDRVERSNUM >= 10509
+ m_Osd = cOsdProvider::NewOsd(OSD_X, OSD_Y, 0);
+#else
m_Osd = cOsdProvider::NewOsd(OSD_X, OSD_Y);
+#endif
if(m_Osd) {
if (m_Osd->CanHandleAreas(areas, sizeof(areas) / sizeof(tArea) ) == oeOk) {
@@ -1636,7 +1640,11 @@ void cTestBitmap::Show()
int x, y, bit = 0;
if(!m_Osd) {
+#if VDRVERSNUM >= 10509
+ m_Osd = cOsdProvider::NewOsd(OSD_X, OSD_Y, 0);
+#else
m_Osd = cOsdProvider::NewOsd(OSD_X, OSD_Y);
+#endif
if(m_Osd) {
if (m_Osd->CanHandleAreas(areas, sizeof(areas) / sizeof(tArea) ) == oeOk) {