diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2004-02-08 18:00:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2004-02-08 18:00:00 +0100 |
commit | 3fc29659759abb10154b78f9e3568407e523e1fc (patch) | |
tree | fdc9df96602026fc353d90733b74b61a8f679cf7 /osdbase.c | |
parent | 7c5ef5dbbada89f55aa15a7c5ac653f4390ce9b4 (diff) | |
download | vdr-patch-lnbsharing-3fc29659759abb10154b78f9e3568407e523e1fc.tar.gz vdr-patch-lnbsharing-3fc29659759abb10154b78f9e3568407e523e1fc.tar.bz2 |
Version 1.3.4vdr-1.3.4
- Fixed handling language codes in case there is no audio or Dolby PID.
- Fixed handling CA ids (was broken in 1.3.3).
- Fixed the SVDRP command 'STAT DISK' to avoid a 'division by 0' in case the
disk is full (thanks to Jens Rosenboom).
- Fixed handling bitmap indexes for 256 color mode (thanks to Andreas Regel).
- Now handling "linked services" (based on the 'autopid' patch from Andreas
Schultz). Linked channels are detected and added to 'channels.conf', but
currently they are not yet presented to the user other than being in the
normal channel list (this will come later).
- Preliminary fix for the "Unknown picture type error" (thanks to Sascha
Volkenandt for his support in debugging this one). This may slow down switching
between channels on different transponders for now, but a better solution will
come later.
- Fixed the validity check for channel IDs, because some providers use TIDs with
value 0 (thanks to Thomas Bergwinkl).
- Enabled switching to a channel even if it has no Vpid or Apid set, because these
might be automatically set when tuned to that transponder.
- No longer closing the Channels menu after trying to switch to a channel that
is currently not available.
- Removed the now obsolete CaCaps stuff. The Setup/CICAM menu now displays the
actual CAM type as reported by the CAM. The 'ca.conf' file has been stripped
down to the values 0..4.
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.11 2003/10/19 14:32:32 kls Exp $ + * $Id: osdbase.c 1.12 2004/01/31 10:31:13 kls Exp $ */ #include "osdbase.h" @@ -116,7 +116,7 @@ cBitmap::cBitmap(int Width, int Height, int Bpp, bool ClearWithBackground) fontType = fontOsd; font = NULL; if (width > 0 && height > 0) { - bitmap = MALLOC(char, width * height); + bitmap = MALLOC(u_char, width * height); if (bitmap) { Clean(); memset(bitmap, 0x00, width * height); @@ -186,7 +186,7 @@ void cBitmap::Clean(void) dirtyY2 = -1; } -void cBitmap::SetIndex(int x, int y, char Index) +void cBitmap::SetIndex(int x, int y, u_char Index) { if (bitmap) { if (0 <= x && x < width && 0 <= y && y < height) { @@ -231,8 +231,8 @@ int cBitmap::Width(const char *s) void cBitmap::Text(int x, int y, const char *s, eDvbColor ColorFg, eDvbColor ColorBg) { if (bitmap) { - char fg = Index(ColorFg); - char bg = Index(ColorBg); + u_char fg = Index(ColorFg); + u_char bg = Index(ColorBg); int h = font->Height(s); while (s && *s) { const cFont::tCharData *CharData = font->CharData(*s++); @@ -253,7 +253,7 @@ void cBitmap::Text(int x, int y, const char *s, eDvbColor ColorFg, eDvbColor Col void cBitmap::Fill(int x1, int y1, int x2, int y2, eDvbColor Color) { if (bitmap) { - char c = Index(Color); + u_char c = Index(Color); for (int y = y1; y <= y2; y++) for (int x = x1; x <= x2; x++) SetIndex(x, y, c); @@ -267,7 +267,7 @@ void cBitmap::Clear(void) Fill(0, 0, width - 1, height - 1, clrBackground); } -const char *cBitmap::Data(int x, int y) +const u_char *cBitmap::Data(int x, int y) { return &bitmap[y * width + x]; } @@ -327,7 +327,7 @@ void cWindow::Text(int x, int y, const char *s, eDvbColor ColorFg, eDvbColor Col cBitmap::Text(x, y, s, ColorFg, ColorBg); } -const char *cWindow::Data(int x, int y) +const u_char *cWindow::Data(int x, int y) { return cBitmap::Data(x, y); } |