From b41ac6500b7e6c7c7da546be116ff2923fe7ee86 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Tue, 25 May 2010 21:44:23 +0200 Subject: Fixed display bug (text moved too far to the left) --- plugin/menu.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugin') diff --git a/plugin/menu.cpp b/plugin/menu.cpp index 3269fda..9a8ffc1 100644 --- a/plugin/menu.cpp +++ b/plugin/menu.cpp @@ -53,16 +53,13 @@ cMenuMarkAd::cMenuMarkAd(cStatusMarkAd *Status):cOsdMenu(tr("markad status"),15) status=Status; last=time(NULL); - int width; + int width=0; cSkinDisplayMenu *disp=DisplayMenu(); if (disp) { width=disp->GetTextAreaWidth(); } - else - { - width=Setup.OSDWidth; - } + if (!width) width=Setup.OSDWidth; int AvgCharWidth = Setup.FontOsdSize * 3 / 5; // see skins.c int tab=(width-10*AvgCharWidth)/AvgCharWidth; -- cgit v1.2.3