From 0e88dd3315c98ef8b8a48a36b593c85c9c7ea732 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Tue, 20 Oct 2009 17:16:28 +0200 Subject: 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. --- dxr3osd.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3