diff options
author | pixel <pixel> | 2003-03-26 17:19:23 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-03-26 17:19:23 +0000 |
commit | be0486797260377246c1ea1229cca27c19c64ad2 (patch) | |
tree | 2d6f03e0e8cad191250239b69205c727c5551323 /lib/font.cc | |
parent | c00cd54ca5ed959cbccff7aa7261fb5025d1832c (diff) |
bleh
Diffstat (limited to 'lib/font.cc')
-rw-r--r-- | lib/font.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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); +} |