mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Fixed cRecMenuItemSelectDirectory::DrawValue
This commit is contained in:
parent
3f9327b8e4
commit
b7970e5723
@ -682,9 +682,9 @@ void cRecMenuItemSelectDirectory::Draw(void) {
|
|||||||
void cRecMenuItemSelectDirectory::DrawValue(void) {
|
void cRecMenuItemSelectDirectory::DrawValue(void) {
|
||||||
pixmapVal->Fill(clrTransparent);
|
pixmapVal->Fill(clrTransparent);
|
||||||
int iconSize = min(128, height);
|
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;
|
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 iconLeftX = textX - iconSize;
|
||||||
int iconRightX = width - iconSize;
|
int iconRightX = width - iconSize;
|
||||||
int iconY = (height - iconSize) / 2;
|
int iconY = (height - iconSize) / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user