summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-05 11:24:37 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-05 11:24:37 +0200
commit2a5a55cee77c35c437e9f92cbc012e4ffe223dd3 (patch)
treec209495dc0fa211ff56faf8a4afd8f3114d20065 /osd.c
parent916b740d99b6caa5f1c4e2e404fdea350a7bd1c9 (diff)
downloadvdr-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/osd.c b/osd.c
index a63d0e15..7feee784 100644
--- a/osd.c
+++ b/osd.c
@@ -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)