summaryrefslogtreecommitdiff
path: root/dxr3osd.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-29 20:13:34 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-09-29 20:13:34 +0200
commit4e6085d8aa2f11c9decba9674ef9152ce6292f65 (patch)
tree7c358900665670190599263dd16b108ec5a66f6c /dxr3osd.c
parentb52740af4eb2c9c0990ab68a4fdeb6c7158c4243 (diff)
downloadvdr-plugin-dxr3-4e6085d8aa2f11c9decba9674ef9152ce6292f65.tar.gz
vdr-plugin-dxr3-4e6085d8aa2f11c9decba9674ef9152ce6292f65.tar.bz2
add support for multi bitmaps
This functionality is needed for plugins like femon, which uses more then one bitmap for its osd.
Diffstat (limited to 'dxr3osd.c')
-rw-r--r--dxr3osd.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/dxr3osd.c b/dxr3osd.c
index f62df99..72b7dc4 100644
--- a/dxr3osd.c
+++ b/dxr3osd.c
@@ -151,21 +151,16 @@ void cDxr3Osd::Flush()
int i = 0;
while (GetBitmap(i) != NULL) {
- i++;
- }
- int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
- if (!GetBitmap(0)->Dirty(x1, y1, x2, y2)) {
- return;
- }
+ int x1 = 0, y1 = 0, x2 = 0, y2 = 0;
- if (i == 1) {
- cSpuEncoder::instance()->encode(GetBitmap(0), Top(), Left());
- shown = true;
- GetBitmap(0)->Clean();
- return;
- } else {
- dsyslog("TODO: add support for multi bitmaps");
+ if (GetBitmap(0)->Dirty(x1, y1, x2, y2)) {
+
+ cSpuEncoder::instance()->encode(GetBitmap(i), Top(), Left());
+ shown = true;
+ GetBitmap(i)->Clean();
+ }
+ i++;
}
#if 0