CNeutrinoFonts: Fix segfault, when fontfile changed

- use std::string for font and style names
This commit is contained in:
Michael Liebmann
2013-07-03 01:15:28 +02:00
committed by Thilo Graf
parent 0a0035c2ae
commit aca97e210e
3 changed files with 38 additions and 25 deletions

View File

@@ -1742,7 +1742,7 @@ TIMER_START();
CHintBox * hintBox = new CHintBox(LOCALE_MESSAGEBOX_INFO, g_Locale->getText(LOCALE_NEUTRINO_STARTING));
hintBox->paint();
CVFD::getInstance()->init(neutrinoFonts->fontDescr.filename, neutrinoFonts->fontDescr.name);
CVFD::getInstance()->init(neutrinoFonts->fontDescr.filename.c_str(), neutrinoFonts->fontDescr.name.c_str());
CVFD::getInstance()->Clear();
CVFD::getInstance()->ShowText(g_Locale->getText(LOCALE_NEUTRINO_STARTING));
CVFD::getInstance()->setBacklight(g_settings.backlight_tv);