From c269302a825fea7c15ea0518f41e6ed1de156b4e Mon Sep 17 00:00:00 2001 From: ketmar Date: Sat, 20 Nov 2021 03:29:50 +0000 Subject: [PATCH] egui: progress bar drawing fix FossilOrigin-Name: 5a5a8ff6714d9abaa19513e7d2795a5e0ccd72edadb03bbef4a365fc6ffd0e6c --- egui/widgets.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/egui/widgets.d b/egui/widgets.d index 4d52071..ba1e415 100644 --- a/egui/widgets.d +++ b/egui/widgets.d @@ -810,7 +810,8 @@ public: immutable uint clrOk = getColor("stripe", modnorm); immutable uint clrHi = getColor("stripe", modshade); - for (int x0 = 0; x0 < rect.size.w+32; x0 += 32) { + immutable int wend = rect.size.w+32+sth; + for (int x0 = 0; x0 < wend; x0 += 32) { foreach (int y0; 0..sth) { gxHLine(rect.pos.x+x0-y0, sty+y0, 16, (y0 < uprc.size.h ? clrHi : clrOk)); } -- 2.11.4.GIT