diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-14 14:32:16 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-07-18 13:38:53 +0200 |
commit | b7970e5723083d086d3e921ebf7651b934a10909 (patch) | |
tree | d954c5ca4e1e0427e8a7c14921b1b90e0e514be8 /recmenuitem.c | |
parent | 3f9327b8e40e0dc34c9a0202bdbee090a7e3c8a3 (diff) | |
download | vdr-plugin-tvguide-b7970e5723083d086d3e921ebf7651b934a10909.tar.gz vdr-plugin-tvguide-b7970e5723083d086d3e921ebf7651b934a10909.tar.bz2 |
Fixed cRecMenuItemSelectDirectory::DrawValue
Diffstat (limited to 'recmenuitem.c')
-rw-r--r-- | recmenuitem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/recmenuitem.c b/recmenuitem.c index 33a6b6c..5b650a5 100644 --- a/recmenuitem.c +++ b/recmenuitem.c @@ -682,9 +682,9 @@ void cRecMenuItemSelectDirectory::Draw(void) { void cRecMenuItemSelectDirectory::DrawValue(void) { pixmapVal->Fill(clrTransparent); int iconSize = min(128, height); - int textX = width - font->Width(folders[currentVal].c_str()) - iconSize; + int textX = std::max(width - font->Width(folders[currentVal].c_str()) - iconSize, 10 + indent * 30 + font->Width(*text) + 2 * iconSize); int textY = (height - font->Height()) / 2; - pixmapVal->DrawText(cPoint(textX, textY), folders[currentVal].c_str(), colorText, clrTransparent, font); + pixmapVal->DrawText(cPoint(textX, textY), folders[currentVal].c_str(), colorText, clrTransparent, font, width - textX - iconSize, font->Height(), taTop | taRight); int iconLeftX = textX - iconSize; int iconRightX = width - iconSize; int iconY = (height - iconSize) / 2; |