summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-12-09 11:13:00 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2000-12-09 11:13:00 +0100
commit4cd7c3242513bc23579a376dbd89c4fbdc080614 (patch)
tree0314d4075370e00d7fda2e8175453980b9cdb205 /dvbosd.c
parent6b0658a9775aba758b4f6e2e7ef854126ef1e597 (diff)
downloadvdr-4cd7c3242513bc23579a376dbd89c4fbdc080614.tar.gz
vdr-4cd7c3242513bc23579a376dbd89c4fbdc080614.tar.bz2
Moved progress display to menu.c
Diffstat (limited to 'dvbosd.c')
-rw-r--r--dvbosd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/dvbosd.c b/dvbosd.c
index 457175d8..395ad32e 100644
--- a/dvbosd.c
+++ b/dvbosd.c
@@ -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;