summaryrefslogtreecommitdiff
path: root/dxr3osd.c
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-20 17:16:28 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2009-10-20 17:16:28 +0200
commit0e88dd3315c98ef8b8a48a36b593c85c9c7ea732 (patch)
tree64f6aea926c92f2c2becb8f898929df4f5f25e2a /dxr3osd.c
parent11fbc1f236f657e08961e20497400179a0b52bcd (diff)
downloadvdr-plugin-dxr3-0e88dd3315c98ef8b8a48a36b593c85c9c7ea732.tar.gz
vdr-plugin-dxr3-0e88dd3315c98ef8b8a48a36b593c85c9c7ea732.tar.bz2
fix green osd
It can happen, that the OSD conistis of only one area and that we need to scale the osd later. So it is a good idea to save the used palette.
Diffstat (limited to 'dxr3osd.c')
-rw-r--r--dxr3osd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dxr3osd.c b/dxr3osd.c
index 39929b9..9573d62 100644
--- a/dxr3osd.c
+++ b/dxr3osd.c
@@ -140,6 +140,9 @@ void cDxr3Osd::Flush()
// we only need to set bmap pointer to a valid bitmap
bmap = GetBitmap(0);
+ // set global used palette - is needed if we need to scale the osd
+ Palette->Replace(*bmap);
+
} else {
// determine the palette used by all bitmaps