X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FText.cpp;h=0a31c3ea6f9a165056820f72be43fada4583c620;hb=e08372a2095837a0b951ccb68c3499ef67c1a827;hp=8d0dc609ce03ed42f6966abeb3326889289b6676;hpb=6c36b920245ca8b1e3d9aaede5f9d2a6210538a1;p=lugaru.git diff --git a/Source/Text.cpp b/Source/Text.cpp index 8d0dc60..0a31c3e 100644 --- a/Source/Text.cpp +++ b/Source/Text.cpp @@ -1,5 +1,6 @@ /* Copyright (C) 2003, 2010 - Wolfire Games +Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. @@ -20,15 +21,14 @@ along with Lugaru. If not, see . /**> HEADER FILES <**/ #include "Text.h" #include "Game.h" -extern TGAImageRec texture; -void Text::LoadFontTexture(const char *fileName) +void Text::LoadFontTexture(const std::string& fileName) { LOGFUNC; LOG(std::string("Loading font texture...") + fileName); - FontTexture.load(fileName, false, false); + FontTexture.load(fileName, false); if (base) { glDeleteLists(base, 512); base = 0;