use global fontcache
This commit is contained in:
parent
47223b0442
commit
067e6d56c2
1 changed files with 2 additions and 2 deletions
|
@ -445,7 +445,7 @@ FGDialog::display (SGPropertyNode * props)
|
||||||
|
|
||||||
SGPropertyNode *fontnode = props->getNode("font");
|
SGPropertyNode *fontnode = props->getNode("font");
|
||||||
if (fontnode) {
|
if (fontnode) {
|
||||||
FGFontCache *fc = _gui->get_fontcache();
|
FGFontCache *fc = globals->get_fontcache();
|
||||||
_font = fc->get(fontnode);
|
_font = fc->get(fontnode);
|
||||||
} else {
|
} else {
|
||||||
_font = _gui->getDefaultFont();
|
_font = _gui->getDefaultFont();
|
||||||
|
@ -702,7 +702,7 @@ FGDialog::setupObject (puObject * object, SGPropertyNode * props)
|
||||||
object->setBorderThickness( props->getIntValue("border", 2) );
|
object->setBorderThickness( props->getIntValue("border", 2) );
|
||||||
|
|
||||||
if ( SGPropertyNode *nft = props->getNode("font", false) ) {
|
if ( SGPropertyNode *nft = props->getNode("font", false) ) {
|
||||||
FGFontCache *fc = _gui->get_fontcache();
|
FGFontCache *fc = globals->get_fontcache();
|
||||||
puFont *lfnt = fc->get(nft);
|
puFont *lfnt = fc->get(nft);
|
||||||
object->setLabelFont(*lfnt);
|
object->setLabelFont(*lfnt);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue