Better behaviour in cDisplayChannel when switching channels

Message ID 2a954dbc0602200409s6f6a99c2p@mail.gmail.com
State New
Headers

Commit Message

Joachim Wilke Feb. 20, 2006, 12:09 p.m. UTC
  Hello everybody,

when switching to a channel (for example "21") and there exist no
other channels starting with this number (210, 211, or sth. like
that), VDR displays in the DisplayChannel OSD (and also in my LCD):

"2- ZDF"
"21- EinsExtra"

(When switching to other channels, the dash gets removed after a timeout).

In my opinion, the dash is not needed in this case, so I modified the
corresponding method (see attached patch). Switching to channel 21 now
looks like that:

"2- ZDF"
"21 EinsExtra"

Regards,
Joachim.
  

Comments

Joachim Wilke Feb. 20, 2006, 5:18 p.m. UTC | #1
2006/2/20, Joachim Wilke <joachim.wilke@gmail.com>:
> In my opinion, the dash is not needed in this case, so I modified the
> corresponding method (see attached patch). Switching to channel 21 now
> looks like that:
>
> "2- ZDF"
> "21 EinsExtra"

I noticed, that I posted a non-working patch above. Attached is the
corrected version. Sorry for that.

Regards,
Joachim.
  

Patch

diff -up autopatch/menu.c ./menu.c
--- autopatch/menu.c	Mon Feb 20 12:48:10 2006
+++ ./menu.c	Mon Feb 20 12:54:23 2006
@@ -3410,7 +3410,7 @@  eOSState cDisplayChannel::ProcessKey(eKe
                   }
             if (n > 0) {
                // This channel is the only one that fits the input, so let's take it right away:
-               displayChannel->Flush(); // makes sure the user sees his last input
+               Refresh(); // makes sure the user sees his last input
                NewChannel = channel;
                withInfo = true;
                number = 0;