diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-05-13 18:00:00 +0200 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2002-05-13 18:00:00 +0200 |
commit | d07e3829f7c44d713b2677ef73f864af80b3dea3 (patch) | |
tree | 8d6d89b303900b502ec52e83e408795a5728db52 /osdbase.c | |
parent | 803c6c6bf6340302f78171892bef599aa272c266 (diff) | |
download | vdr-patch-lnbsharing-d07e3829f7c44d713b2677ef73f864af80b3dea3.tar.gz vdr-patch-lnbsharing-d07e3829f7c44d713b2677ef73f864af80b3dea3.tar.bz2 |
Version 1.1.2vdr-1.1.2
- Changed the cPlugin::Start() function to return a boolean value that indicates
if the plugin will not be able to perform its task (suggested by Stefan Huelswitt).
- Added the cPlugin::Housekeeping() function (suggested by Stefan Huelswitt).
- Updated channels.conf.cable (thanks to Uwe Scheffler).
- Added 'insert' capabilities to cList (suggested by Stefan Huelswitt).
- Changed the 'package' target in the plugin's Makefile to produce a package that
expands to a directory with just the plugin name and version number (suggested
by Stefan Huelswitt).
- Made the config directory available to plugins (suggested by Stefan Huelswitt).
See PLUGINS.html, section "Configuration files" for details.
- Improved the [eid]syslog() macros, so that the LOG_... macros don't need to be
given any more.
Diffstat (limited to 'osdbase.c')
-rw-r--r-- | osdbase.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osdbase.c 1.1 2002/05/10 14:55:53 kls Exp $ + * $Id: osdbase.c 1.2 2002/05/13 16:30:59 kls Exp $ */ #include "osdbase.h" @@ -49,7 +49,7 @@ int cPalette::Index(eDvbColor Color) return i; } } - esyslog(LOG_ERR, "ERROR: too many different colors used in palette"); + esyslog("ERROR: too many different colors used in palette"); full = true; } return 0; @@ -105,10 +105,10 @@ cBitmap::cBitmap(int Width, int Height, int Bpp, bool ClearWithBackground) SetFont(fontOsd); } else - esyslog(LOG_ERR, "ERROR: can't allocate bitmap!"); + esyslog("ERROR: can't allocate bitmap!"); } else - esyslog(LOG_ERR, "ERROR: illegal bitmap parameters (%d, %d)!", width, height); + esyslog("ERROR: illegal bitmap parameters (%d, %d)!", width, height); } cBitmap::~cBitmap() @@ -337,7 +337,7 @@ tWindowHandle cOsd::Create(int x, int y, int w, int h, int Bpp, bool ClearWithBa if (x >= 0 && y >= 0 && w > 0 && h > 0 && (Bpp == 1 || Bpp == 2 || Bpp == 4 || Bpp == 8)) { if ((w & 0x03) != 0) { w += 4 - (w & 0x03); - esyslog(LOG_ERR, "ERROR: OSD window width must be a multiple of 4 - increasing to %d", w); + esyslog("ERROR: OSD window width must be a multiple of 4 - increasing to %d", w); } cWindow *win = new cWindow(numWindows, x, y, w, h, Bpp, ClearWithBackground, Tiled); if (OpenWindow(win)) { @@ -349,10 +349,10 @@ tWindowHandle cOsd::Create(int x, int y, int w, int h, int Bpp, bool ClearWithBa delete win; } else - esyslog(LOG_ERR, "ERROR: illegal OSD parameters"); + esyslog("ERROR: illegal OSD parameters"); } else - esyslog(LOG_ERR, "ERROR: too many OSD windows"); + esyslog("ERROR: too many OSD windows"); return -1; } @@ -456,7 +456,7 @@ void cOsd::Relocate(tWindowHandle Window, int x, int y, int NewWidth, int NewHei if (NewWidth > 0 && NewHeight > 0) { if ((NewWidth & 0x03) != 0) { NewWidth += 4 - (NewWidth & 0x03); - esyslog(LOG_ERR, "ERROR: OSD window width must be a multiple of 4 - increasing to %d", NewWidth); + esyslog("ERROR: OSD window width must be a multiple of 4 - increasing to %d", NewWidth); } CloseWindow(w); cWindow *NewWindow = new cWindow(w->Handle(), x, y, NewWidth, NewHeight, w->Bpp(), w->ClearWithBackground(), w->Tiled()); |