1
0
Fork 0

use global fontcache

This commit is contained in:
mfranz 2006-06-05 20:25:43 +00:00
parent 47223b0442
commit 067e6d56c2

View file

@ -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 {