diff options
Diffstat (limited to 'dxr3interface.c')
-rw-r--r-- | dxr3interface.c | 14 |
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 } // ================================== |