summaryrefslogtreecommitdiff
path: root/dxr3interface.c
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-10-11 18:01:11 +0000
committeraustriancoder <austriancoder>2004-10-11 18:01:11 +0000
commit01a67ccfd81b838987d45e68f6edfe2da00e98c6 (patch)
tree08bc046f7c9164f669304e9ab662b351109752b5 /dxr3interface.c
parent0773083d9880e3816b5fe5a7c3840b7d3c8bcfb3 (diff)
downloadvdr-plugin-dxr3-01a67ccfd81b838987d45e68f6edfe2da00e98c6.tar.gz
vdr-plugin-dxr3-01a67ccfd81b838987d45e68f6edfe2da00e98c6.tar.bz2
fixed bug #1022810: Osd gets pink
Diffstat (limited to 'dxr3interface.c')
-rw-r--r--dxr3interface.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/dxr3interface.c b/dxr3interface.c
index 413d9d5..963a218 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -60,6 +60,15 @@ static int Dxr3Open(const char *Name, int n, int Mode)
//! constructor
cDxr3Interface::cDxr3Interface()
{
+ // default spu palette
+ default_palette =
+ {
+ 0xe18080, 0x2b8080, 0x847b9c, 0x51ef5a, 0x7d8080, 0xb48080,
+ 0xa910a5, 0x6addca, 0xd29210, 0x1c76b8, 0x50505a, 0x30b86d,
+ 0x5d4792, 0x3dafa5, 0x718947, 0xeb8080
+ };
+
+
// open control stream
m_fdControl = Dxr3Open("", cDxr3ConfigData::Instance().GetDxr3Card(), O_WRONLY | O_SYNC);
if (!m_fdControl)
@@ -1135,8 +1144,11 @@ void cDxr3Interface::ClearOsd()
WriteSpu((const uint8_t*) &ed, (int) ed.count);
ClearButton();
}
-
+
Unlock();
+
+ // prevent osd to get pink
+ SetPalette(&default_palette); // ok here? Has its own un/lock
}
// ==================================