diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-29 17:25:49 +0200 |
---|---|---|
committer | Christian Gmeiner <christian.gmeiner@gmail.com> | 2009-09-29 17:25:49 +0200 |
commit | 2666d38fb9dfe4072f072e9abc2acbcaa24320e8 (patch) | |
tree | 5b4165ddac98692f0d51b904d4da46230f706af6 | |
parent | 7349c1c5ec5377857fdf8dde0bcc3c06ef114787 (diff) | |
download | vdr-plugin-dxr3-2666d38fb9dfe4072f072e9abc2acbcaa24320e8.tar.gz vdr-plugin-dxr3-2666d38fb9dfe4072f072e9abc2acbcaa24320e8.tar.bz2 |
make use of new spuencoder
-rw-r--r-- | dxr3osd.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -150,6 +150,25 @@ void cDxr3Osd::Flush() if (!Active()) return; + 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; + } + + 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 0 if (last->Elapsed() < cDxr3ConfigData::instance()->GetOsdFlushRate()) return; |