diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-29 19:14:03 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-29 19:14:03 +0200 |
commit | 30943fa06e21d17e7760dbafbefd99a4f245f775 (patch) | |
tree | e9eb9aafd89a3ce4451682405df4c584499f4c5a | |
parent | 4ff18ef8f95f4c8ae68623e2a2ec1b8e4de75d13 (diff) | |
download | vdr-plugin-graphlcd-30943fa06e21d17e7760dbafbefd99a4f245f775.tar.gz vdr-plugin-graphlcd-30943fa06e21d17e7760dbafbefd99a4f245f775.tar.bz2 |
bug fixes: problems with colour tokens fixed
-rw-r--r-- | skinconfig.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/skinconfig.c b/skinconfig.c index 85f6656..e4e5ffa 100644 --- a/skinconfig.c +++ b/skinconfig.c @@ -124,10 +124,10 @@ typedef enum _eTokenId tokSkinPath, tokScreenWidth, tokScreenHeight, - tokForegroundColor, - tokBackgroundColor, tokDefaultForegroundColor, tokDefaultBackgroundColor, + tokForegroundColor, + tokBackgroundColor, tokPrivateSettingStart, tokSettingShowChannelLogo, @@ -255,10 +255,10 @@ static const std::string Tokens[tokCountToken] = "SkinPath", "ScreenWidth", "ScreenHeight", - "ForegroundColor", - "BackgroundColor", "DefaultForegroundColor", "DefaultBackgroundColor", + "ForegroundColor", + "BackgroundColor", "privateSettingStart", "SettingShowChannelLogo", @@ -741,28 +741,28 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token) const GLCD::cBitmap * bitmap = mDisplay->GetScreen(); return bitmap->Height(); } - case tokForegroundColor: + case tokDefaultForegroundColor: { - char buffer[11]; - snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor(false))); + char buffer[12]; + snprintf(buffer, 11, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor(true))); return buffer; } - case tokBackgroundColor: + case tokDefaultBackgroundColor: { - char buffer[11]; - snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor(false))); + char buffer[12]; + snprintf(buffer, 11, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor(true))); return buffer; } - case tokDefaultForegroundColor: + case tokForegroundColor: { - char buffer[11]; - snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor(true))); + char buffer[12]; + snprintf(buffer, 11, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor(false))); return buffer; } - case tokDefaultBackgroundColor: + case tokBackgroundColor: { - char buffer[11]; - snprintf(buffer, 10, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor(true))); + char buffer[12]; + snprintf(buffer, 11, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor(false))); return buffer; } default: |