summaryrefslogtreecommitdiff
path: root/dxr3interface.c
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-10-12 19:37:36 +0000
committeraustriancoder <austriancoder>2004-10-12 19:37:36 +0000
commitc0e96501864ef7c1ac7cee829598b3bc4beda543 (patch)
treea1f83599c1df356d5a1acfee0c920108f7bd9bc7 /dxr3interface.c
parent12cda1e4ee17823efeb6b4446b4021a92a0439d9 (diff)
downloadvdr-plugin-dxr3-c0e96501864ef7c1ac7cee829598b3bc4beda543.tar.gz
vdr-plugin-dxr3-c0e96501864ef7c1ac7cee829598b3bc4beda543.tar.bz2
default_palette is now a constant unsigned[16]
Diffstat (limited to 'dxr3interface.c')
-rw-r--r--dxr3interface.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/dxr3interface.c b/dxr3interface.c
index 963a218..9dbd62f 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -34,6 +34,15 @@ const int ZEROBUFFER_SIZE = 4096;
uint8_t zerobuffer[ZEROBUFFER_SIZE] = {0};
// ==================================
+//! default spu palette
+static unsigned default_palette[16] =
+{
+ 0xe18080, 0x2b8080, 0x847b9c, 0x51ef5a, 0x7d8080, 0xb48080,
+ 0xa910a5, 0x6addca, 0xd29210, 0x1c76b8, 0x50505a, 0x30b86d,
+ 0x5d4792, 0x3dafa5, 0x718947, 0xeb8080
+};
+
+// ==================================
//! helper function to generate name
static const char *Dxr3Name(const char *Name, int n)
{
@@ -60,15 +69,6 @@ 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)
@@ -1148,7 +1148,7 @@ void cDxr3Interface::ClearOsd()
Unlock();
// prevent osd to get pink
- SetPalette(&default_palette); // ok here? Has its own un/lock
+ SetPalette(default_palette); // ok here? Has its own un/lock
}
// ==================================