From dc9c33957504f3506815b44eed0171c7f21accf5 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Tue, 24 May 2011 22:14:04 +0200 Subject: bug fix: forgot hex-prefix '0x' when returning DefaultBackgroundColor/DefaultForegroundColor --- skinconfig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skinconfig.c b/skinconfig.c index b387e74..46fced3 100644 --- a/skinconfig.c +++ b/skinconfig.c @@ -740,13 +740,13 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token) case tokDefaultForegroundColor: { char buffer[9]; - snprintf(buffer, 8, "%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor())); + snprintf(buffer, 8, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetForegroundColor())); return buffer; } case tokDefaultBackgroundColor: { char buffer[5]; - snprintf(buffer, 8, "%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor())); + snprintf(buffer, 8, "0x%08x", (uint32_t)((mDisplay)->GetDriver()->GetBackgroundColor())); return buffer; } default: -- cgit v1.2.3