diff options
author | andreas 'randy' weinberger <vdr@smue.org> | 2010-11-23 21:05:30 +0100 |
---|---|---|
committer | andreas 'randy' weinberger <vdr@smue.org> | 2010-11-23 21:05:30 +0100 |
commit | 8291136596cf2a6a97d587f09e1378518f6734b6 (patch) | |
tree | e8a418d883a4ce7c29fe0f6fe2a85e903b2fabda | |
parent | c80778f6d86013af3da2bb2a59e912092b16d96c (diff) | |
download | vdr-plugin-graphlcd-8291136596cf2a6a97d587f09e1378518f6734b6.tar.gz vdr-plugin-graphlcd-8291136596cf2a6a97d587f09e1378518f6734b6.tar.bz2 |
fixed some typos
-rw-r--r-- | display.c | 6 | ||||
-rw-r--r-- | display.h | 2 | ||||
-rw-r--r-- | strfct.c | 2 |
3 files changed, 5 insertions, 5 deletions
@@ -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 { @@ -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*/ @@ -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; } |