diff options
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); +} |