From 59d03df3915337cbadfeccaaea7b547b6779f27d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 29 May 2004 09:24:48 +0200 Subject: [PATCH] Fixed setting the title in the replay display of the "Classic VDR" skin --- CONTRIBUTORS | 2 ++ HISTORY | 3 +++ skinclassic.c | 4 ++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index aeb5e0e9..0d5084ae 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -185,6 +185,8 @@ Stefan Huelswitt stuff obsolete for suggesting to move the declaration of cMenuText to VDR/menu.h to make it available to plugins, and to add a SetText() function + for reporting a bug in setting the title in the replay display of the "Classic VDR" + skin in case a shorter title is set after a longer one Ulrich Röder for pointing out that there are channels that have a symbol rate higher than diff --git a/HISTORY b/HISTORY index a4dbdefd..fb21d150 100644 --- a/HISTORY +++ b/HISTORY @@ -2848,3 +2848,6 @@ Video Disk Recorder Revision History - Updated 'channels.conf.terr' for Hannover (thanks to Peter Waechtler). - cBitmap::DrawBitmap() now also resets the palette if the entire bitmap area is covered (suggested by Sascha Volkenandt). +- Fixed setting the title in the replay display of the "Classic VDR" skin in case + a shorter title is set after a longer one (thanks to Stefan Huelswitt for + reporting this one). diff --git a/skinclassic.c b/skinclassic.c index 3f0de1c5..f7c06cc6 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.3 2004/05/23 10:40:02 kls Exp $ + * $Id: skinclassic.c 1.4 2004/05/29 09:18:21 kls Exp $ */ #include "skinclassic.h" @@ -369,7 +369,7 @@ cSkinClassicDisplayReplay::~cSkinClassicDisplayReplay() void cSkinClassicDisplayReplay::SetTitle(const char *Title) { - osd->DrawText(x0, y0, Title, Theme.Color(clrReplayTitle), Theme.Color(clrBackground), cFont::GetFont(fontOsd)); + osd->DrawText(x0, y0, Title, Theme.Color(clrReplayTitle), Theme.Color(clrBackground), cFont::GetFont(fontOsd), x1 - x0); } void cSkinClassicDisplayReplay::SetMode(bool Play, bool Forward, int Speed)