summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2011-03-06 09:39:07 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2011-03-06 09:39:07 +0100
commit374e3f787018d33ddf4c798145a115f00d67d103 (patch)
tree8af8a92a80c2c80251d292d58b517625aa6601fd
parentd283a0fd024928434bfda4cb83e86ba459159a32 (diff)
downloadvdr-plugin-graphlcd-374e3f787018d33ddf4c798145a115f00d67d103.tar.gz
vdr-plugin-graphlcd-374e3f787018d33ddf4c798145a115f00d67d103.tar.bz2
missing UTF-8 convert
see http://projects.vdr-developer.org/issues/599
-rw-r--r--display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.c b/display.c
index 6547bf4..7c73eda 100644
--- a/display.c
+++ b/display.c
@@ -788,12 +788,12 @@ void cGraphLCDDisplay::DisplayTime()
const char *amonth = tr("JanFebMarAprMayJunJulAugSepOctNovDec");
amonth += Utf8SymChars(amonth, tm->tm_mon * 3);
strn0cpy(month, amonth, min(Utf8SymChars(amonth, 3) + 1, int(sizeof(month))));
- snprintf(buffer, sizeof(buffer), "%s %2d.%s %d:%02d", (const char *) WeekDayName(tm->tm_wday), tm->tm_mday, month, tm->tm_hour, tm->tm_min);
+ snprintf(buffer, sizeof(buffer), "%s %2d.%s %d:%02d", (const char *) WeekDayName(tm->tm_wday), tm->tm_mday, Convert(month), tm->tm_hour, tm->tm_min);
TextLen = normalFont->Width(buffer);
if (TextLen > std::max(FrameWidth - 2 * TEXT_OFFSET_X, 1))
{
- snprintf(buffer, sizeof(buffer), "%d.%s %d:%02d", tm->tm_mday, month, tm->tm_hour, tm->tm_min);
+ snprintf(buffer, sizeof(buffer), "%d.%s %d:%02d", tm->tm_mday, Convert(month), tm->tm_hour, tm->tm_min);
TextLen = normalFont->Width(buffer);
}