From 4ab43dce19707dd0565879916d7d5ab47a85525a Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 30 Aug 2015 22:10:43 +0100 Subject: [PATCH] Comments --- imgui_draw.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imgui_draw.cpp b/imgui_draw.cpp index e1a3ea85..69dbc45a 100644 --- a/imgui_draw.cpp +++ b/imgui_draw.cpp @@ -1372,6 +1372,7 @@ void ImFontAtlas::RenderCustomTexData(int pass, void* p_rects) ImVector& rects = *(ImVector*)p_rects; if (pass == 0) { + // Request rectangles stbrp_rect r; memset(&r, 0, sizeof(r)); r.w = (TEX_DATA_W*2)+1; @@ -1380,7 +1381,7 @@ void ImFontAtlas::RenderCustomTexData(int pass, void* p_rects) } else if (pass == 1) { - // Copy pixels + // Render/copy pixels const stbrp_rect& r = rects[0]; for (int y = 0, n = 0; y < TEX_DATA_H; y++) for (int x = 0; x < TEX_DATA_W; x++, n++)