From b4995f979d127cea667b4e2b71c91e9db4ab52ef Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Fri, 6 Feb 2026 18:12:40 +0500 Subject: wip --- src/Fl_Counter.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Counter.cxx') diff --git a/src/Fl_Counter.cxx b/src/Fl_Counter.cxx index be57c9f1f..059797b59 100644 --- a/src/Fl_Counter.cxx +++ b/src/Fl_Counter.cxx @@ -75,7 +75,8 @@ void Fl_Counter::draw() { if (tbt == FL_THIN_UP_BOX) tbt = FL_THIN_DOWN_BOX; // arrow boxes - for (int i = 0; i < 4; i++) { + int i; + for (i = 0; i < 4; i++) { if (mouseobj_ == i + 1) ab[i].boxtype = fl_down(box()); else @@ -116,7 +117,7 @@ void Fl_Counter::draw() { // draw arrow boxes int xo = x(); - for (int i = 0; i < 4; i++) { + for (i = 0; i < 4; i++) { if (ab[i].width > 0) { draw_box(ab[i].boxtype, xo, y(), ab[i].width, h(), color()); Fl_Rect bb(xo, y(), ab[i].width, h(), ab[i].boxtype); -- cgit v1.2.3