From dc39575fb3ef90e5a2689babe7fb335cd88f6727 Mon Sep 17 00:00:00 2001 From: maxim nikonov Date: Thu, 5 Feb 2026 21:32:25 +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 3536a2213..d086f0229 100644 --- a/src/Fl_Counter.cxx +++ b/src/Fl_Counter.cxx @@ -102,8 +102,9 @@ void Fl_Counter::draw() { draw_box(tbt, tx, y(), tw, h(), FL_BACKGROUND2_COLOR); fl_font(textfont(), textsize()); fl_color(active_r() ? textcolor() : fl_inactive(textcolor())); - std::string str = format_str(); - fl_draw(str.c_str(), tx, y(), tw, h(), FL_ALIGN_CENTER); + char buf[129]; + format(buf); + fl_draw(buf, tx, y(), tw, h(), FL_ALIGN_CENTER); if (Fl::focus() == this) draw_focus(tbt, tx, y(), tw, h()); if (!(damage()&FL_DAMAGE_ALL)) return; // only need to redraw text -- cgit v1.2.3