CImageInfo: fix y position of infotext

Minitv was not considered.
When font size very small, infotext could be overlapping
with minitv window. This should fix this.
This commit is contained in:
Thilo Graf
2017-02-13 08:47:55 +01:00
committed by Thilo Graf
parent a907afdc7c
commit 2727e3f7f0

View File

@@ -414,6 +414,7 @@ void CImageInfo::InitInfoText(const std::string& text)
//add a caption for info contents //add a caption for info contents
Font * caption_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]; Font * caption_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU];
int caption_height = caption_font->getHeight(); int caption_height = caption_font->getHeight();
y_tmp = max(y_tmp, cc_tv->getYPos()+cc_tv->getHeight());
if (cc_sub_caption == NULL) if (cc_sub_caption == NULL)
cc_sub_caption = new CComponentsLabel(cc_info->getXPos(), y_tmp, cc_info->getWidth(), caption_height, cc_sub_caption = new CComponentsLabel(cc_info->getXPos(), y_tmp, cc_info->getWidth(), caption_height,
g_Locale->getText(LOCALE_IMAGEINFO_LICENSE), CTextBox::AUTO_WIDTH, item_font); g_Locale->getText(LOCALE_IMAGEINFO_LICENSE), CTextBox::AUTO_WIDTH, item_font);