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

Origin commit data
------------------
Commit: 3b60a55f59
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
This commit is contained in:
2016-10-07 17:10:48 +02:00
parent 1cb41d0ba7
commit df41f8f768
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