From 30943fa06e21d17e7760dbafbefd99a4f245f775 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Sun, 29 May 2011 19:14:03 +0200 Subject: bug fixes: problems with colour tokens fixed --- skinconfig.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'skinconfig.c') 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: -- cgit v1.2.3