diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-05-25 21:44:23 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-05-25 21:44:23 +0200 |
commit | b41ac6500b7e6c7c7da546be116ff2923fe7ee86 (patch) | |
tree | a64f5cec7b31ce465d78384cc19ffae42eea854e | |
parent | 4c668726b7de321f0411064dcb286ed6ad05a307 (diff) | |
download | vdr-plugin-markad-b41ac6500b7e6c7c7da546be116ff2923fe7ee86.tar.gz vdr-plugin-markad-b41ac6500b7e6c7c7da546be116ff2923fe7ee86.tar.bz2 |
Fixed display bug (text moved too far to the left)
-rw-r--r-- | plugin/menu.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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; |