1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed displaying a system message while the replay mode is being shown

This commit is contained in:
Klaus Schmidinger 2002-03-16 11:38:27 +01:00
parent 92358d6a4e
commit 80bc132236
2 changed files with 7 additions and 1 deletions

View File

@ -1100,3 +1100,4 @@ Video Disk Recorder Revision History
parameters fits on a single screen - unless the height of the OSD has been parameters fits on a single screen - unless the height of the OSD has been
set to a small value (based on code from Markus Lang). set to a small value (based on code from Markus Lang).
- Changed the title of the "Main" menu to "VDR". - Changed the title of the "Main" menu to "VDR".
- Fixed displaying a system message while the replay mode is being shown.

7
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 1.166 2002/03/16 10:06:18 kls Exp $ * $Id: menu.c 1.167 2002/03/16 11:29:58 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -2991,6 +2991,8 @@ void cReplayControl::DisplayAtBottom(const char *s)
if (s) { if (s) {
int w = dvbApi->WidthInCells(s); int w = dvbApi->WidthInCells(s);
int d = max(Width() - w, 0) / 2; int d = max(Width() - w, 0) / 2;
if (modeOnly) //XXX remove when displaying replay mode differently
Interface->Fill(0, -1, Interface->Width(), 1, clrTransparent); //XXX remove when displaying replay mode differently
Interface->Write(d, -1, s); Interface->Write(d, -1, s);
Interface->Flush(); Interface->Flush();
} }
@ -3010,8 +3012,11 @@ void cReplayControl::ShowMode(void)
if (NormalPlay) if (NormalPlay)
return; // no need to do indicate ">" unless there was a different mode displayed before return; // no need to do indicate ">" unless there was a different mode displayed before
// open small display // open small display
/*XXX change when displaying replay mode differently
Interface->Open(9, -1); Interface->Open(9, -1);
Interface->Clear(); Interface->Clear();
XXX*/
Interface->Open(0, -1); //XXX remove when displaying replay mode differently
visible = modeOnly = true; visible = modeOnly = true;
} }