diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-13 16:35:49 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-13 16:35:49 +0200 |
commit | d4893ad1fed2e2b157c404d610db779138c4c461 (patch) | |
tree | 50d97120ec3a806cf2bcc74cd6385c750eb15d77 /osdbase.c | |
parent | 49fcbf19fa2a179d06990443349575ffa86a697f (diff) | |
download | vdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.gz vdr-d4893ad1fed2e2b157c404d610db779138c4c461.tar.bz2 |
Improved the [eid]syslog() macros
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()); |