From 45b91d060e0991870c3784970a3964797df89812 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 9 May 2013 14:20:00 +0200 Subject: Fixed display of recording duration in recordings menu when a cut is running --- menuitem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'menuitem.c') diff --git a/menuitem.c b/menuitem.c index bc10645..ab85994 100644 --- a/menuitem.c +++ b/menuitem.c @@ -1054,14 +1054,15 @@ void cNopacityRecordingMenuItem::DrawFolderIcon(void) { void cNopacityRecordingMenuItem::DrawRecDateTime(void) { int iconDateTimeSize = config.menuRecFolderSize / 2; + int iconHeight = height/2 + (height/2 - iconDateTimeSize)/2; if (!drawn) { cImageLoader imgLoader; if (imgLoader.LoadIcon("skinIcons/recordingdatetime", iconDateTimeSize)) { - int iconHeight = height/2 + (height/2 - iconDateTimeSize)/2; pixmapIcon->DrawImage(cPoint(3, iconHeight), imgLoader.GetImage()); } drawn = true; } + pixmapIcon->DrawRectangle(cRect(iconHeight, 0, width-iconHeight, height), clrTransparent); const cEvent *Event = NULL; Event = Recording->Info()->GetEvent(); cString strDateTime(""); -- cgit v1.2.3