osd-setup: start browsing for fonts in same dir were active font is located

Origin commit data
------------------
Commit: e900d6610e
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-01-22 (Mon, 22 Jan 2018)

Origin message was:
------------------
- osd-setup: start browsing for fonts in same dir were active font is located
This commit is contained in:
vanhofen
2018-01-22 12:06:15 +01:00
parent f5461bbdce
commit 9e12fefe12

View File

@@ -256,7 +256,7 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
CFileFilter fileFilter;
fileFilter.addFilter("ttf");
fileBrowser.Filter = &fileFilter;
if (fileBrowser.exec(FONTDIR) == true)
if (fileBrowser.exec(getPathName(g_settings.font_file).c_str()) == true)
{
g_settings.font_file = fileBrowser.getSelectedFile()->Name;
printf("[neutrino] new font file %s\n", fileBrowser.getSelectedFile()->Name.c_str());
@@ -272,7 +272,7 @@ int COsdSetup::exec(CMenuTarget* parent, const std::string &actionKey)
CFileFilter fileFilter;
fileFilter.addFilter("ttf");
fileBrowser.Filter = &fileFilter;
if (fileBrowser.exec(FONTDIR) == true)
if (fileBrowser.exec(getPathName(g_settings.ttx_font_file).c_str()) == true)
{
g_settings.ttx_font_file = fileBrowser.getSelectedFile()->Name;
ttx_font_file = fileBrowser.getSelectedFile()->Name;