Jelajahi Sumber

Removed left-over code.

Wei Tjong Yao 12 tahun lalu
induk
melakukan
9f674d25d9
1 mengubah file dengan 0 tambahan dan 4 penghapusan
  1. 0 4
      Engine/UI/Font.cpp

+ 0 - 4
Engine/UI/Font.cpp

@@ -302,10 +302,6 @@ const FontFace* Font::GetFaceTTF(int pointSize)
     newFace->rowHeight_ = Max((face->size->metrics.height + 63) >> 6, maxHeight);
     newFace->rowHeight_ = Max((face->size->metrics.height + 63) >> 6, maxHeight);
     
     
     // Now try to pack into the smallest possible texture
     // Now try to pack into the smallest possible texture
-    int totalArea = 0;
-    for (unsigned i = 0; i < numGlyphs; ++i)
-        totalArea += (newFace->glyphs_[i].width_ + 1) * (newFace->glyphs_[i].height_ + 1);
-    
     bool success = true;
     bool success = true;
     AreaAllocator allocator(FONT_TEXTURE_MIN_SIZE, FONT_TEXTURE_MIN_SIZE, FONT_TEXTURE_MAX_SIZE, FONT_TEXTURE_MAX_SIZE);
     AreaAllocator allocator(FONT_TEXTURE_MIN_SIZE, FONT_TEXTURE_MIN_SIZE, FONT_TEXTURE_MAX_SIZE, FONT_TEXTURE_MAX_SIZE);
     for (unsigned i = 0; i < numGlyphs; ++i)
     for (unsigned i = 0; i < numGlyphs; ++i)