diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-05 11:24:37 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-05 11:24:37 +0200 |
commit | 2a5a55cee77c35c437e9f92cbc012e4ffe223dd3 (patch) | |
tree | c209495dc0fa211ff56faf8a4afd8f3114d20065 /osd.c | |
parent | 916b740d99b6caa5f1c4e2e404fdea350a7bd1c9 (diff) | |
download | vdr-2a5a55cee77c35c437e9f92cbc012e4ffe223dd3.tar.gz vdr-2a5a55cee77c35c437e9f92cbc012e4ffe223dd3.tar.bz2 |
Fixed cBitmap::DrawPixel(), which messed with other bitmaps' palettes in case the pixel coordinates were outside this bitmap
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.c 1.48 2004/05/28 15:33:22 kls Exp $ + * $Id: osd.c 1.49 2004/06/05 11:15:43 kls Exp $ */ #include "osd.h" @@ -324,7 +324,8 @@ void cBitmap::DrawPixel(int x, int y, tColor Color) { x -= x0; y -= y0; - SetIndex(x, y, Index(Color)); + if (0 <= x && x < width && 0 <= y && y < height) + SetIndex(x, y, Index(Color)); } void cBitmap::DrawBitmap(int x, int y, const cBitmap &Bitmap, tColor ColorFg, tColor ColorBg) |