From 39162de15a2603f1282241aef412ef1b70162b27 Mon Sep 17 00:00:00 2001 From: sapier Date: Fri, 28 Nov 2014 20:06:34 +0100 Subject: Make hud use fontengine too Fix non coding style conforming glb_fontengine to g_fontengine Fix fonts never been deleted due to grabbed to often --- src/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 7141bec66..d9fa8faa2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1569,8 +1569,8 @@ ClientLauncher::~ClientLauncher() if (input) delete input; - if (glb_fontengine) - delete glb_fontengine; + if (g_fontengine) + delete g_fontengine; if (device) device->drop(); @@ -1630,8 +1630,8 @@ bool ClientLauncher::run(GameParams &game_params, const Settings &cmd_args) skin->setColor(gui::EGDC_HIGH_LIGHT, video::SColor(255, 70, 100, 50)); skin->setColor(gui::EGDC_HIGH_LIGHT_TEXT, video::SColor(255, 255, 255, 255)); - glb_fontengine = new FontEngine(g_settings, guienv); - assert(glb_fontengine != NULL); + g_fontengine = new FontEngine(g_settings, guienv); + assert(g_fontengine != NULL); #if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2 // Irrlicht 1.8 input colours -- cgit v1.2.3