From 8291136596cf2a6a97d587f09e1378518f6734b6 Mon Sep 17 00:00:00 2001 From: andreas 'randy' weinberger Date: Tue, 23 Nov 2010 21:05:30 +0100 Subject: fixed some typos --- display.c | 6 +++--- display.h | 2 +- strfct.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/display.c b/display.c index 58cc0e0..af64461 100644 --- a/display.c +++ b/display.c @@ -1431,7 +1431,7 @@ void cGraphLCDDisplay::DisplayReplay(tReplayState & replay) largeFont->WrapText(nMaxX, maxLines * lineHeight, szReplayName, lines); } else if (maxLines == 1) //singleline mode - lines.push_back(replay.name); + lines.push_back(szReplayName); else { largeFont->WrapText(nMaxX, maxLines * lineHeight, szReplayName, lines); @@ -1534,9 +1534,9 @@ void cGraphLCDDisplay::DisplayReplay(tReplayState & replay) if ((replay.total > 1 && IndexIsGreaterAsOneHour(replay.total, replay.framesPerSecond)) || IndexIsGreaterAsOneHour(replay.current, replay.framesPerSecond)) // Check if any index bigger as one hour { - szCurrent = (const char *) IndexToHMSF(replay.current, replay.framesPerSecond); + szCurrent = (const char *) IndexToHMSF(replay.current, false, replay.framesPerSecond); if (replay.total > 1) // Don't draw totaltime for endless streams - szTotal = (const char *) IndexToHMSF(replay.total, replay.framesPerSecond); + szTotal = (const char *) IndexToHMSF(replay.total, false, replay.framesPerSecond); } else { diff --git a/display.h b/display.h index b4ae79a..09e297a 100644 --- a/display.h +++ b/display.h @@ -132,7 +132,7 @@ private: bool CheckAndUpdateSymbols(); /** Check if replay index bigger as one hour */ - bool IndexIsGreaterAsOneHour(int Index,double framesPerSecond) const; + bool IndexIsGreaterAsOneHour(int Index, double framesPerSecond) const; /** Translate replay index to string with minute and second MM:SS */ const char *IndexToMS(int Index, double framesPerSecond) const; /** Compare Scroller with new Textbuffer*/ diff --git a/strfct.c b/strfct.c index 5135e95..45ced40 100644 --- a/strfct.c +++ b/strfct.c @@ -37,7 +37,7 @@ char * strncopy(char * dest , const char * src , size_t n) strncpy(dest, src, n); if (n) { - *(dest + n - 1) = 0; + *(dest + n - 1) = 0; } return dest; } -- cgit v1.2.3