From 76ee903d84d5b477016fb6ed6bdee1a21e237903 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Sun, 7 Sep 2014 15:01:56 +0200 Subject: Add support for TrueType fonts * Keeps original font system in place * Uses the same API as original font system: - You can render only one line at a time - You can only use one font and color for one gr_text* call * Caches all rendered text, with a string cache limited to 400 entries, then it trucates to 250, which results in memory usage hovering around 5-10MB Change-Id: I36107b9dcd8d57bae4486fce8b8f64e49ef3d906 Signed-off-by: Vojtech Bocek --- gui/slidervalue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/slidervalue.cpp') diff --git a/gui/slidervalue.cpp b/gui/slidervalue.cpp index 5b4d57f1c..700d7d5d7 100644 --- a/gui/slidervalue.cpp +++ b/gui/slidervalue.cpp @@ -198,7 +198,7 @@ GUISliderValue::GUISliderValue(xml_node<>* node) : GUIObject(node) } } - gr_getFontDetails(mFont ? mFont->GetResource() : NULL, (unsigned*) &mFontHeight, NULL); + mFontHeight = gr_getMaxFontHeight(mFont ? mFont->GetResource() : NULL); if(mShowCurr) { -- cgit v1.2.3