summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-01-13 12:40:05 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-01-13 12:40:05 +0100
commit39a3ad2b2ee6b124d4304fef4818803dea3df880 (patch)
treeb05dbddd54c74f647f94b0ca2f43edb0fee66b9e
parent29871d8585713d16fde2f1f8677c966e5ec7b101 (diff)
downloadvdr-39a3ad2b2ee6b124d4304fef4818803dea3df880.tar.gz
vdr-39a3ad2b2ee6b124d4304fef4818803dea3df880.tar.bz2
Fixed a loss of the date display in the "classic" skin's main menu
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--skinclassic.c7
3 files changed, 8 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 48f424e5..e94f36fd 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1603,6 +1603,7 @@ Andreas Brugger <brougs78@gmx.net>
for reporting a missing 'const' in cRecordingInfo::ChannelID()
for suggesting to propagate the kInfo key to any open menu, so that it can react to
it in a context sensitive manner
+ for reporting a loss of the date display in the "classic" skin's main menu
Dino Ravnic <dino.ravnic@fer.hr>
for fixing some characters in the iso8859-2 font file
diff --git a/HISTORY b/HISTORY
index bafda406..96a89081 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5545,3 +5545,5 @@ Video Disk Recorder Revision History
initial *.pot file.
- Fixed handling the '-l' option.
- Fixed error handling in cCuttingThread::Action() (thanks to Udo Richter).
+- Fixed a loss of the date display in the "classic" skin's main menu (reported by
+ Andreas Brugger).
diff --git a/skinclassic.c b/skinclassic.c
index 144d0722..11b5ce44 100644
--- a/skinclassic.c
+++ b/skinclassic.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinclassic.c 1.18 2007/07/29 12:35:03 kls Exp $
+ * $Id: skinclassic.c 1.19 2008/01/13 12:38:00 kls Exp $
*/
#include "skinclassic.h"
@@ -162,6 +162,7 @@ private:
int x0, x1;
int y0, y1, y2, y3, y4, y5;
int lineHeight;
+ int dateWidth;
cString lastDate;
void SetScrollbar(void);
public:
@@ -186,6 +187,7 @@ cSkinClassicDisplayMenu::cSkinClassicDisplayMenu(void)
{
const cFont *font = cFont::GetFont(fontOsd);
lineHeight = font->Height();
+ dateWidth = 0;
x0 = 0;
x1 = cOsd::OsdWidth();
y0 = 0;
@@ -253,7 +255,7 @@ void cSkinClassicDisplayMenu::Clear(void)
void cSkinClassicDisplayMenu::SetTitle(const char *Title)
{
const cFont *font = cFont::GetFont(fontOsd);
- osd->DrawText(x0, y0, Title, Theme.Color(clrMenuTitleFg), Theme.Color(clrMenuTitleBg), font, x1 - x0);
+ osd->DrawText(x0, y0, Title, Theme.Color(clrMenuTitleFg), Theme.Color(clrMenuTitleBg), font, x1 - x0 - dateWidth);
}
void cSkinClassicDisplayMenu::SetButtons(const char *Red, const char *Green, const char *Yellow, const char *Blue)
@@ -395,6 +397,7 @@ void cSkinClassicDisplayMenu::Flush(void)
int w = font->Width(date);
osd->DrawText(x1 - w - 2, y0, date, Theme.Color(clrMenuDate), Theme.Color(clrMenuTitleBg), font, w);
lastDate = date;
+ dateWidth = max(w + 2, dateWidth);
}
osd->Flush();
}