mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
moviebrowser: use FOOT_FONT definition to calc button dimensions
Origin commit data
------------------
Commit: ecb5fa2201
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-05 (Fri, 05 Feb 2016)
Origin message was:
------------------
- moviebrowser: use FOOT_FONT definition to calc button dimensions
This commit is contained in:
@@ -1735,16 +1735,16 @@ int CMovieBrowser::refreshFoot(bool show)
|
||||
//TRACE("[mb]->refreshButtonLine\n");
|
||||
int offset = (m_settings.gui != MB_GUI_LAST_PLAY && m_settings.gui != MB_GUI_LAST_RECORD) ? 0 : 2;
|
||||
neutrino_locale_t ok_loc = (m_settings.gui == MB_GUI_FILTER && m_windowFocus == MB_FOCUS_FILTER) ? LOCALE_BOOKMARKMANAGER_SELECT : LOCALE_MOVIEBROWSER_FOOT_PLAY;
|
||||
int ok_loc_len = std::max(g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_BOOKMARKMANAGER_SELECT), true),
|
||||
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_PLAY), true));
|
||||
int ok_loc_len = std::max(FOOT_FONT->getRenderWidth(g_Locale->getText(LOCALE_BOOKMARKMANAGER_SELECT), true),
|
||||
FOOT_FONT->getRenderWidth(g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_PLAY), true));
|
||||
std::string filter_text = g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_FILTER);
|
||||
filter_text += m_settings.filter.optionString;
|
||||
std::string sort_text = g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_SORT);
|
||||
sort_text += g_Locale->getText(m_localizedItemName[m_settings.sorting.item]);
|
||||
int sort_text_len = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_SORT), true);
|
||||
int sort_text_len = FOOT_FONT->getRenderWidth(g_Locale->getText(LOCALE_MOVIEBROWSER_FOOT_SORT), true);
|
||||
int len = 0;
|
||||
for (int i = 0; m_localizedItemName[i] != NONEXISTANT_LOCALE; i++)
|
||||
len = std::max(len, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]->getRenderWidth(g_Locale->getText(m_localizedItemName[i]), true));
|
||||
len = std::max(len, FOOT_FONT->getRenderWidth(g_Locale->getText(m_localizedItemName[i]), true));
|
||||
sort_text_len += len;
|
||||
|
||||
button_label_ext footerButtons[] = {
|
||||
|
Reference in New Issue
Block a user