mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
neutrinofonts: allow monospaced font for shellwindow widget
Font is initialized at runtime and uses FONTDIR_VAR "/shell.ttf" or FONTDIR "/shell.ttf"
Origin commit data
------------------
Branch: ni/coolstream
Commit: 721300f60b
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-27 (Sat, 27 Jan 2018)
Origin message was:
------------------
- neutrinofonts: allow monospaced font for shellwindow widget
Font is initialized at runtime and uses FONTDIR_VAR "/shell.ttf" or FONTDIR "/shell.ttf"
------------------
This commit was generated by Migit
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