Browse Source

Merge remote-tracking branch 'origin' into 2015-07-cleanup

ocornut 10 years ago
parent
commit
e099798c97
3 changed files with 4 additions and 2 deletions
  1. 0 1
      .gitignore
  2. 3 0
      examples/sdl_opengl_example/main.cpp
  3. 1 1
      imgui.h

+ 0 - 1
.gitignore

@@ -1 +0,0 @@
-imgui.ini

+ 3 - 0
examples/sdl_opengl_example/main.cpp

@@ -10,7 +10,10 @@ int main(int, char**)
 {
     // Setup SDL
 	if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
+	{
+        printf("Error: %s\n", SDL_GetError());
         return -1;
+	}
 
     // Setup window
 	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);

+ 1 - 1
imgui.h

@@ -1127,7 +1127,7 @@ struct ImFontConfig
     bool            FontDataOwnedByAtlas;       // true     // TTF data ownership taken by the container ImFontAtlas (will delete memory itself). Set to true 
     int             FontNo;                     // 0        // Index of font within TTF file
     float           SizePixels;                 //          // Size in pixels for rasterizer
-    int             OversampleH, OversampleV;   // 2, 2     // Rasterize at higher quality for sub-pixel positioning. We don't use sub-pixel positions on the Y axis.
+    int             OversampleH, OversampleV;   // 3, 1     // Rasterize at higher quality for sub-pixel positioning. We don't use sub-pixel positions on the Y axis.
     bool            PixelSnapH;                 // false    // Align every character to pixel boundary (if enabled, set OversampleH/V to 1)
     ImVec2          GlyphExtraSpacing;          // 0, 0     // Extra spacing (in pixels) between glyphs
     const ImWchar*  GlyphRanges;                //          // List of Unicode range (2 value per range, values are inclusive, zero-terminated list)