Added cDevice::NewOsd() to allow a derived cDevice class to implement its own OSD capabilities

This commit is contained in:
Klaus Schmidinger
2002-08-25 09:36:09 +02:00
parent df5be87dc3
commit c6ed4da7a0
8 changed files with 67 additions and 21 deletions

5
osd.c
View File

@@ -4,13 +4,12 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: osd.c 1.34 2002/08/15 11:20:44 kls Exp $
* $Id: osd.c 1.35 2002/08/25 09:18:31 kls Exp $
*/
#include "osd.h"
#include <string.h>
#include "device.h"
#include "dvbosd.h"
#include "i18n.h"
#include "status.h"
@@ -73,7 +72,7 @@ cOsdBase *cOsd::OpenRaw(int x, int y)
#ifdef DEBUG_OSD
return NULL;
#else
return osd ? NULL : new cDvbOsd(x, y);
return osd ? NULL : cDevice::PrimaryDevice()->NewOsd(x, y);
#endif
}