From 79f8c5f38e0a24a5f30e0a29fb5c18f03c85c203 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 17 Apr 2011 12:57:29 +0200 Subject: Removed an obsolete local variable in dvbsdffosd.c --- PLUGINS/src/dvbsddevice/dvbsdffosd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'PLUGINS/src/dvbsddevice/dvbsdffosd.c') diff --git a/PLUGINS/src/dvbsddevice/dvbsdffosd.c b/PLUGINS/src/dvbsddevice/dvbsdffosd.c index 039999aa..46c65e05 100644 --- a/PLUGINS/src/dvbsddevice/dvbsdffosd.c +++ b/PLUGINS/src/dvbsddevice/dvbsdffosd.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: dvbsdffosd.c 2.2 2010/09/12 11:29:00 kls Exp $ + * $Id: dvbsdffosd.c 2.3 2011/04/17 12:55:09 kls Exp $ */ #include "dvbsdffosd.h" @@ -73,8 +73,7 @@ void cDvbSdFfOsd::SetActive(bool On) Flush(); } else if (shown) { - cBitmap *Bitmap; - for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) { + for (int i = 0; GetBitmap(i); i++) { Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_Close); } @@ -108,8 +107,7 @@ eOsdError cDvbSdFfOsd::CanHandleAreas(const tArea *Areas, int NumAreas) eOsdError cDvbSdFfOsd::SetAreas(const tArea *Areas, int NumAreas) { if (shown) { - cBitmap *Bitmap; - for (int i = 0; (Bitmap = GetBitmap(i)) != NULL; i++) { + for (int i = 0; GetBitmap(i); i++) { Cmd(OSD_SetWindow, 0, i + 1); Cmd(OSD_Close); } -- cgit v1.2.3