From: mfranz Date: Mon, 5 Jun 2006 20:25:43 +0000 (+0000) Subject: use global fontcache X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=067e6d56c25756c145007c19dce0054e9a9bbfa5;p=flightgear.git use global fontcache --- diff --git a/src/GUI/dialog.cxx b/src/GUI/dialog.cxx index 7c9120c71..6bb15501f 100644 --- a/src/GUI/dialog.cxx +++ b/src/GUI/dialog.cxx @@ -445,7 +445,7 @@ FGDialog::display (SGPropertyNode * props) SGPropertyNode *fontnode = props->getNode("font"); if (fontnode) { - FGFontCache *fc = _gui->get_fontcache(); + FGFontCache *fc = globals->get_fontcache(); _font = fc->get(fontnode); } else { _font = _gui->getDefaultFont(); @@ -702,7 +702,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props) object->setBorderThickness( props->getIntValue("border", 2) ); if ( SGPropertyNode *nft = props->getNode("font", false) ) { - FGFontCache *fc = _gui->get_fontcache(); + FGFontCache *fc = globals->get_fontcache(); puFont *lfnt = fc->get(nft); object->setLabelFont(*lfnt); } else {