From d455db84ebb60a2644913a421a599ee9b53d952f Mon Sep 17 00:00:00 2001 From: vanhofen Date: Tue, 28 May 2013 08:41:43 +0200 Subject: [PATCH] filebrowser: use FONT_TYPE_MENU_TITLE for header CComponentsHeader doesn't support several fonts yet. FONT_TYPE_MENU_TITLE is the used font. so we have to use FONT_TYPE_MENU_TITLE here to get the correct render-widths in paintHead() methode. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/29b3d66f3df27a2dd78c9c92d49161f5c56aa100 Author: vanhofen Date: 2013-05-28 (Tue, 28 May 2013) Origin message was: ------------------ - filebrowser: use FONT_TYPE_MENU_TITLE for header CComponentsHeader doesn't support several fonts yet. FONT_TYPE_MENU_TITLE is the used font. so we have to use FONT_TYPE_MENU_TITLE here to get the correct render-widths in paintHead() methode. ------------------ This commit was generated by Migit --- src/gui/filebrowser.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gui/filebrowser.cpp b/src/gui/filebrowser.cpp index 0336e73e2..7ea9bb4c4 100644 --- a/src/gui/filebrowser.cpp +++ b/src/gui/filebrowser.cpp @@ -362,7 +362,14 @@ CFileBrowser::CFileBrowser(const char * const _base, const tFileBrowserMode mode void CFileBrowser::commonInit() { frameBuffer = CFrameBuffer::getInstance(); - fnt_title = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE]; + // fnt_title = g_Font[SNeutrinoSettings::FONT_TYPE_EVENTLIST_TITLE]; + /* + CComponentsHeader doesn't support several fonts yet. + FONT_TYPE_MENU_TITLE is the used font. + so we have to use FONT_TYPE_MENU_TITLE here to get + the correct render-widths in paintHead() methode. + */ + fnt_title = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_TITLE]; fnt_item = g_Font[SNeutrinoSettings::FONT_TYPE_FILEBROWSER_ITEM]; fnt_small = g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_SMALL]; //shoutcast