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