diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-24 22:14:04 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-05-24 22:14:04 +0200 |
commit | dc9c33957504f3506815b44eed0171c7f21accf5 (patch) | |
tree | a1740e8be5cc25c5aa6ae3035982db455e3fa30e | |
parent | 276ad2cfb04123a120cbe89b68842f3233322a3f (diff) | |
download | vdr-plugin-graphlcd-dc9c33957504f3506815b44eed0171c7f21accf5.tar.gz vdr-plugin-graphlcd-dc9c33957504f3506815b44eed0171c7f21accf5.tar.bz2 |
bug fix: forgot hex-prefix '0x' when returning DefaultBackgroundColor/DefaultForegroundColor
-rw-r--r-- | skinconfig.c | 4 |
1 files 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: |