diff options
author | Maniac <maniac> | 2011-05-15 09:28:20 +0200 |
---|---|---|
committer | Maniac <maniac> | 2011-05-15 09:28:20 +0200 |
commit | 29c9a143dc985fa20a6f6cb76da24c1ed57367d5 (patch) | |
tree | c90eb665743aef0b10b6a67eb6fda8bb8b004840 | |
parent | 7435f69e68348ddfd9a0d63ed1599886f5f74dd8 (diff) | |
download | vdr-plugin-skinpearlhd-29c9a143dc985fa20a6f6cb76da24c1ed57367d5.tar.gz vdr-plugin-skinpearlhd-29c9a143dc985fa20a6f6cb76da24c1ed57367d5.tar.bz2 |
Menu: fix tab width
-rw-r--r-- | pearlhd.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -945,7 +945,10 @@ void cSkinPearlHDDisplayMenu::SetItem(const char *Text, int Index, bool Current, const char *s = GetTabbedText(Text, i); if (s) { int xt = x1Item+75 + Tab(i); - osd->DrawText(xt, y1Item+4, s, Current ? Theme.Color(clrFontColor) : Theme.Color(clrFontColorInactive), clrTransparent, fontSansBook27, x2Item - xt - 4); + int xt_end = Tab(i+1); + if (!Tab(i+1)) + xt_end = x2Item-xt; + osd->DrawText(xt, y1Item+4, s, Current ? Theme.Color(clrFontColor) : Theme.Color(clrFontColorInactive), clrTransparent, fontSansBook27, xt_end); } if (!Tab(i + 1)) break; |