diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 34a884e7c..000000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -imgui.ini diff --git a/examples/sdl_opengl_example/main.cpp b/examples/sdl_opengl_example/main.cpp index e2d236678..3499924c1 100644 --- a/examples/sdl_opengl_example/main.cpp +++ b/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); diff --git a/imgui.h b/imgui.h index 169eae06d..043218e90 100644 --- a/imgui.h +++ b/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)