mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user