From ef285a4977a736308de2d11d6103a1f5d8cde0df Mon Sep 17 00:00:00 2001 From: giantpune Date: Wed, 20 May 2009 08:53:02 +0000 Subject: [PATCH] little fix --- source/menu.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/source/menu.cpp b/source/menu.cpp index a33b3fec..437b5b4e 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -2915,13 +2915,20 @@ static int MenuDiscList() lastrawtime = rawtime; timeinfo = localtime (&rawtime); if (dataed < 1){ - if((rawtime & 1)&&(Settings.hddinfo == hr12)) + if(Settings.hddinfo == hr12){ + if(rawtime & 1) strftime(theTime, sizeof(theTime), "%I:%M", timeinfo); - if((rawtime & 1)&&(Settings.hddinfo == hr24)) + else + strftime(theTime, sizeof(theTime), "%I %M", timeinfo); + } + if(Settings.hddinfo == hr24){ + if(rawtime & 1) strftime(theTime, sizeof(theTime), "%H:%M", timeinfo); - else + else strftime(theTime, sizeof(theTime), "%H %M", timeinfo); + } clockTime.SetText(theTime); + } else if (dataed > 0){