diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-12-09 11:13:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-12-09 11:13:00 +0100 |
commit | 4cd7c3242513bc23579a376dbd89c4fbdc080614 (patch) | |
tree | 0314d4075370e00d7fda2e8175453980b9cdb205 /dvbosd.c | |
parent | 6b0658a9775aba758b4f6e2e7ef854126ef1e597 (diff) | |
download | vdr-4cd7c3242513bc23579a376dbd89c4fbdc080614.tar.gz vdr-4cd7c3242513bc23579a376dbd89c4fbdc080614.tar.bz2 |
Moved progress display to menu.c
Diffstat (limited to 'dvbosd.c')
-rw-r--r-- | dvbosd.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbosd.c 1.6 2000/11/18 15:36:51 kls Exp $ + * $Id: dvbosd.c 1.7 2000/12/09 11:13:00 kls Exp $ */ #include "dvbosd.h" @@ -82,6 +82,16 @@ void cBitmap::SetPixel(int x, int y, eDvbColor Color) } } +void cBitmap::SetBitmap(int x, int y, const cBitmap &Bitmap) +{ + if (bitmap && Bitmap.bitmap) { + for (int ix = 0; ix < Bitmap.width; ix++) { + for (int iy = 0; iy < Bitmap.height; iy++) + SetPixel(x + ix, y + iy, eDvbColor(Bitmap.bitmap[Bitmap.width * iy + ix])); + } + } +} + int cBitmap::Width(unsigned char c) { return font ? font->Width(c) : -1; |