summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-05-23 19:29:12 +0000
committerlordjaxom <lordjaxom>2004-05-23 19:29:12 +0000
commit377ef2b18a6499a1ef0e540a74c4e54317efee85 (patch)
tree211342fe01d961a9fd621dce45b2672c520c49c5 /display.c
parentd309055320433e5fd899de53dc688d679609e6db (diff)
downloadvdr-plugin-text2skin-377ef2b18a6499a1ef0e540a74c4e54317efee85.tar.gz
vdr-plugin-text2skin-377ef2b18a6499a1ef0e540a74c4e54317efee85.tar.bz2
- added "ChannelSmall" section (apparently VDR doesn't use it)v0.0.1-pre2
- added replay and message items - added a german translation of the SKINS document (incomplete)
Diffstat (limited to 'display.c')
-rw-r--r--display.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/display.c b/display.c
index 395205d..d0079c5 100644
--- a/display.c
+++ b/display.c
@@ -1,5 +1,5 @@
/*
- * $Id: display.c,v 1.1.1.1 2004/05/23 00:08:03 lordjaxom Exp $
+ * $Id: display.c,v 1.2 2004/05/23 19:20:26 lordjaxom Exp $
*/
#include "display.h"
@@ -12,7 +12,7 @@ cText2SkinDisplayChannel::cText2SkinDisplayChannel(cText2SkinData *Data, bool Wi
printf("cText2SkinDisplayChannel\n");
mData = Data;
mWithInfo = WithInfo;
- mRender = new cText2SkinRender(mData, sectionChannel);
+ mRender = new cText2SkinRender(mData, WithInfo ? sectionChannel : sectionChannelSmall);
mDirty = false;
}
@@ -113,9 +113,17 @@ void cText2SkinDisplayReplay::SetProgress(int Current, int Total) {
}
void cText2SkinDisplayReplay::SetCurrent(const char *Current) {
+ if (mRender->mReplayCurrentText != Current) {
+ mRender->mReplayCurrentText = Current;
+ mDirty = true;
+ }
}
void cText2SkinDisplayReplay::SetTotal(const char *Total) {
+ if (mRender->mReplayTotalText != Total) {
+ mRender->mReplayTotalText = Total;
+ mDirty = true;
+ }
}
void cText2SkinDisplayReplay::SetJump(const char *Jump) {