CHintBox: reduce window size for used auto size depends on text content

This commit is contained in:
2016-10-07 17:10:48 +02:00
parent ce11a3a0df
commit 3b60a55f59
2 changed files with 2 additions and 1 deletions

View File

@@ -215,6 +215,7 @@ void CHintBox::addHintItem(const std::string& Text, const int& text_mode, const
//set required font and line size
Font* font = font_text == NULL ? g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO] : font_text;
width = max(width, min(font->getRenderWidth(Text), HINTBOX_MIN_WIDTH));
int h_line = font->getHeight();
//init side picon object