mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
- neutrinofonts: allow monospaced font for shellwindow widget
Font is initialized at runtime and uses FONTDIR_VAR "/shell.ttf" or FONTDIR "/shell.ttf" Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -118,7 +118,8 @@ void CShellWindow::exec()
|
||||
return;
|
||||
}
|
||||
|
||||
Font *font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
|
||||
CNeutrinoFonts::getInstance()->SetupShellFont();
|
||||
Font *font = g_ShellFont ? g_ShellFont : g_Font[SNeutrinoSettings::FONT_TYPE_MENU_INFO];
|
||||
int h_shell = frameBuffer->getScreenHeight();
|
||||
int w_shell = frameBuffer->getScreenWidth();
|
||||
unsigned int lines_max = h_shell / font->getHeight();
|
||||
|
Reference in New Issue
Block a user