From patchwork Mon Feb 20 12:09:15 2006 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joachim Wilke X-Patchwork-Id: 12210 Received: from nproxy.gmail.com ([64.233.182.200]) by www.linuxtv.org with esmtp (Exim 4.50) id 1FB9qx-0004O4-Iz for vdr@linuxtv.org; Mon, 20 Feb 2006 13:09:19 +0100 Received: by nproxy.gmail.com with SMTP id o25so612382nfa for ; Mon, 20 Feb 2006 04:09:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=iRZLD718WwRAtnWYgNO9xtO/Api1EzQ9bIUA6puCUJ1tuUz/aaaFz8TSkAlfpDAS5GgKeI58so7dj3OjoIkpJ0VzbjUVmRO7EZcR5GK9kL6PXn5ctBqXyghV0WfxC3dXf4O5QW38QQ/nfP/c8zs+svclYC/uTpyUyy9YPcn3hew= Received: by 10.48.49.13 with SMTP id w13mr1199718nfw; Mon, 20 Feb 2006 04:09:15 -0800 (PST) Received: by 10.49.5.7 with HTTP; Mon, 20 Feb 2006 04:09:15 -0800 (PST) Message-ID: <2a954dbc0602200409s6f6a99c2p@mail.gmail.com> Date: Mon, 20 Feb 2006 13:09:15 +0100 From: "Joachim Wilke" To: "VDR Mailing List" MIME-Version: 1.0 Subject: [vdr] Better behaviour in cDisplayChannel when switching channels X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Feb 2006 12:09:19 -0000 Status: O X-Status: X-Keywords: X-UID: 8016 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. 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;