From f8e707a19dccf66240236a87f69c1a6f5942852c Mon Sep 17 00:00:00 2001 From: phintuka Date: Sat, 1 Sep 2007 08:47:04 +0000 Subject: Fix OSD compilation with VDR 1.5.9. Note: layered OSD still won't work as expected. (Thanks to Petri Helin and Halim Sahin) --- equalizer.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'equalizer.c') diff --git a/equalizer.c b/equalizer.c index 9a957cdd..4114b497 100644 --- a/equalizer.c +++ b/equalizer.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: equalizer.c,v 1.2 2006-08-22 03:45:34 phintuka Exp $ + * $Id: equalizer.c,v 1.3 2007-09-01 08:47:04 phintuka Exp $ * */ @@ -46,7 +46,11 @@ void cEqualizer::Show() { tArea areas [] = { {0, 0, OSD_W - 1, OSD_H - 1, 4} }; +#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) { -- cgit v1.2.3