From be0486797260377246c1ea1229cca27c19c64ad2 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 26 Mar 2003 17:19:23 +0000 Subject: bleh --- lib/font.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/font.cc') diff --git a/lib/font.cc b/lib/font.cc index 7cc57f6..204e60d 100644 --- a/lib/font.cc +++ b/lib/font.cc @@ -104,7 +104,7 @@ mogltk::font::font(Handle * ffont) : textcolor(255, 255, 255, 255), shadow(0), w fonttex = (texture **) malloc(nbT * sizeof(texture *)); for (i = 0; i < nbT; i++) { - fonttex[i] = new texture(256, 256, true); + fonttex[i] = alloctexture(); } sizes = (Uint8 *) malloc(nbentries * sizeof(Uint8)); @@ -315,4 +315,6 @@ int mogltk::font::singletextsize(const String & s) const { mogltk::font * mogltk::SystemFont; - +mogltk::texture * mogltk::font::alloctexture() { + return new mogltk::texture(256, 256); +} -- cgit v1.2.3