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/drawscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/drawscene.cpp') diff --git a/src/drawscene.cpp b/src/drawscene.cpp index ba3316143..8ba2be1b0 100644 --- a/src/drawscene.cpp +++ b/src/drawscene.cpp @@ -507,7 +507,7 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device, video::IVideoDriver* driver = device->getVideoDriver(); v2u32 screensize = porting::getWindowSize(); - v2s32 textsize(glb_fontengine->getTextWidth(text), glb_fontengine->getLineHeight()); + v2s32 textsize(g_fontengine->getTextWidth(text), g_fontengine->getLineHeight()); v2s32 center(screensize.X / 2, screensize.Y / 2); core::rect textrect(center - textsize / 2, center + textsize / 2); @@ -534,7 +534,7 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device, // before with default settings 342 * porting::getDisplayDensity() * g_settings->getFloat("gui_scaling"), - glb_fontengine->getTextHeight() * 2); + g_fontengine->getTextHeight() * 2); core::rect barrect(center - barsize / 2, center + barsize / 2); driver->draw2DRectangle(video::SColor(255, 255, 255, 255),barrect, NULL); // border -- cgit v1.2.3