]> git.mxchange.org Git - flightgear.git/commitdiff
use global fontcache
authormfranz <mfranz>
Mon, 5 Jun 2006 20:25:43 +0000 (20:25 +0000)
committermfranz <mfranz>
Mon, 5 Jun 2006 20:25:43 +0000 (20:25 +0000)
src/GUI/dialog.cxx

index 7c9120c717ac71a4f8bdf5cee711d9029315049e..6bb15501ff289467e23f4ee5c38a61cebf303e46 100644 (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 {