Browse Source

Tab->Spaces, missing spaces, typos

ocornut 9 years ago
parent
commit
8efd05a148
2 changed files with 8 additions and 8 deletions
  1. 1 1
      imgui.h
  2. 7 7
      imgui_draw.cpp

+ 1 - 1
imgui.h

@@ -1322,7 +1322,7 @@ struct ImFontAtlas
     IMGUI_API const ImWchar*    GetGlyphRangesJapanese();   // Default + Hiragana, Katakana, Half-Width, Selection of 1946 Ideographs
     IMGUI_API const ImWchar*    GetGlyphRangesJapanese();   // Default + Hiragana, Katakana, Half-Width, Selection of 1946 Ideographs
     IMGUI_API const ImWchar*    GetGlyphRangesChinese();    // Japanese + full set of about 21000 CJK Unified Ideographs
     IMGUI_API const ImWchar*    GetGlyphRangesChinese();    // Japanese + full set of about 21000 CJK Unified Ideographs
     IMGUI_API const ImWchar*    GetGlyphRangesCyrillic();   // Default + about 400 Cyrillic characters
     IMGUI_API const ImWchar*    GetGlyphRangesCyrillic();   // Default + about 400 Cyrillic characters
-    IMGUI_API const ImWchar*    GetGlyphRangesThai();       //Default + Thai charactors
+    IMGUI_API const ImWchar*    GetGlyphRangesThai();       // Default + Thai characters
 
 
     // Members
     // Members
     // (Access texture data via GetTexData*() calls which will setup a default font for you.)
     // (Access texture data via GetTexData*() calls which will setup a default font for you.)

+ 7 - 7
imgui_draw.cpp

@@ -1654,13 +1654,13 @@ const ImWchar*  ImFontAtlas::GetGlyphRangesCyrillic()
 
 
 const ImWchar*  ImFontAtlas::GetGlyphRangesThai()
 const ImWchar*  ImFontAtlas::GetGlyphRangesThai()
 {
 {
-	static const ImWchar ranges[] =
-	{
-		0x0020, 0x00FF, //Basic Latin
-		0x0E00, 0x0E7F, //Thai Unicode
-		0,
-	};
-	return &ranges[0];
+    static const ImWchar ranges[] =
+    {
+        0x0020, 0x00FF, // Basic Latin
+        0x0E00, 0x0E7F, // Thai
+        0,
+    };
+    return &ranges[0];
 }
 }
 
 
 //-----------------------------------------------------------------------------
 //-----------------------------------------------------------------------------