From c207d2ae1138f2403f736fe8ea9dbb46976d1137 Mon Sep 17 00:00:00 2001 From: Oliver Bock <oliver.bock@aei.mpg.de> Date: Wed, 9 Apr 2008 00:23:37 +0200 Subject: [PATCH] Font resource doesn't need to be stored --- Starsphere.cpp | 5 +---- Starsphere.h | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Starsphere.cpp b/Starsphere.cpp index a2e7b2a..521a2f4 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 ad23c31..5d824a3 100644 --- a/Starsphere.h +++ b/Starsphere.h @@ -124,7 +124,6 @@ private: }; // resource handling - const Resource *m_FontResource; FTFont *m_PolygonFont; // local HUD contents -- GitLab