From e7cc048d81e51bd11b0b9561a5f17d428ecbdac9 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 28 Aug 2015 15:35:08 +0100 Subject: [PATCH] Demo: custom rendering tweak. --- imgui_demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_demo.cpp b/imgui_demo.cpp index a412aae25..a79e9c4af 100644 --- a/imgui_demo.cpp +++ b/imgui_demo.cpp @@ -1674,7 +1674,7 @@ static void ShowExampleAppCustomRendering(bool* opened) } draw_list->PushClipRect(ImVec4(canvas_pos.x, canvas_pos.y, canvas_pos.x+canvas_size.x, canvas_pos.y+canvas_size.y)); // clip lines within the canvas (if we resize it, etc.) for (int i = 0; i < points.Size - 1; i += 2) - draw_list->AddLine(ImVec2(canvas_pos.x + points[i].x, canvas_pos.y + points[i].y), ImVec2(canvas_pos.x + points[i+1].x, canvas_pos.y + points[i+1].y), 0xFF00FFFF); + draw_list->AddLine(ImVec2(canvas_pos.x + points[i].x, canvas_pos.y + points[i].y), ImVec2(canvas_pos.x + points[i+1].x, canvas_pos.y + points[i+1].y), 0xFF00FFFF, 2.0f); draw_list->PopClipRect(); if (adding_preview) points.pop_back();