mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
GUI: Pick up theme font size in RIchTextWidget
This commit is contained in:
parent
4b86df2f62
commit
c0db1957c8
@ -142,7 +142,9 @@ void RichTextWidget::createWidget() {
|
||||
TextColorData *normal = g_gui.theme()->getTextColorData(kTextColorNormal);
|
||||
uint32 fg = _wm->_pixelformat.RGBToColor(normal->r, normal->g, normal->b);
|
||||
|
||||
Graphics::MacFont macFont(Graphics::kMacFontNewYork, 30, Graphics::kMacFontRegular);
|
||||
const int fontHeight = g_gui.xmlEval()->getVar("Globals.Font.Height", 25);
|
||||
|
||||
Graphics::MacFont macFont(Graphics::kMacFontNewYork, fontHeight, Graphics::kMacFontRegular);
|
||||
|
||||
_txtWnd = new Graphics::MacText(Common::U32String(), _wm, &macFont, fg, bg, _textWidth, Graphics::kTextAlignLeft);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user