summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas 'randy' weinberger <vdr@smue.org>2010-11-23 21:05:30 +0100
committerandreas 'randy' weinberger <vdr@smue.org>2010-11-23 21:05:30 +0100
commit8291136596cf2a6a97d587f09e1378518f6734b6 (patch)
treee8a418d883a4ce7c29fe0f6fe2a85e903b2fabda
parentc80778f6d86013af3da2bb2a59e912092b16d96c (diff)
downloadvdr-plugin-graphlcd-8291136596cf2a6a97d587f09e1378518f6734b6.tar.gz
vdr-plugin-graphlcd-8291136596cf2a6a97d587f09e1378518f6734b6.tar.bz2
fixed some typos
-rw-r--r--display.c6
-rw-r--r--display.h2
-rw-r--r--strfct.c2
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;
}