浏览代码

ImFont: Reorder field initialization to match declaration order

omar 8 年之前
父节点
当前提交
b84eac53d8
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      imgui_draw.cpp

+ 6 - 6
imgui_draw.cpp

@@ -1694,15 +1694,15 @@ void    ImFont::Clear()
 {
     FontSize = 0.0f;
     DisplayOffset = ImVec2(0.0f, 1.0f);
-    ConfigData = NULL;
-    ConfigDataCount = 0;
-    Ascent = Descent = 0.0f;
-    ContainerAtlas = NULL;
     Glyphs.clear();
-    FallbackGlyph = NULL;
-    FallbackXAdvance = 0.0f;
     IndexXAdvance.clear();
     IndexLookup.clear();
+    FallbackGlyph = NULL;
+    FallbackXAdvance = 0.0f;
+    ConfigDataCount = 0;
+    ConfigData = NULL;
+    ContainerAtlas = NULL;
+    Ascent = Descent = 0.0f;
 }
 
 void ImFont::BuildLookupTable()