diff --git a/Starsphere.cpp b/Starsphere.cpp index a2e7b2ac73673a3051998a70419809a13341402b..521a2f4fcc805e8dc3a53312dd0e54875f0e12a6 100644 --- a/Starsphere.cpp +++ b/Starsphere.cpp @@ -505,14 +505,11 @@ void Starsphere::resize(const int width, const int height) */ void Starsphere::initialize(const int width, const int height, const Resource *font) { - // store font resource - this->m_FontResource = font; - // setup initial dimensions resize(width, height); // create font instance using font resource (base address + size) - m_PolygonFont = new FTGLPolygonFont((&m_FontResource->data()->at(0)), m_FontResource->data()->size()); + m_PolygonFont = new FTGLPolygonFont(&font->data()->at(0), font->data()->size()); m_PolygonFont->CharMap(ft_encoding_unicode); // m_PolygonFont->Depth(0.05); diff --git a/Starsphere.h b/Starsphere.h index ad23c31fab9b61fd1b31fc2e653ca9ae17aba5c9..5d824a3667a7e9f37df098fd0bb9ab349d134627 100644 --- a/Starsphere.h +++ b/Starsphere.h @@ -124,7 +124,6 @@ private: }; // resource handling - const Resource *m_FontResource; FTFont *m_PolygonFont; // local HUD contents