mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 02:11:04 +02:00
CHintBox: reduce window size for used auto size depends on text content
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3b60a55f59
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-07 (Fri, 07 Oct 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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