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_Value_Output.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/Fl_Value_Output.cxx') diff --git a/src/Fl_Value_Output.cxx b/src/Fl_Value_Output.cxx index 924829937..cdea175ed 100644 --- a/src/Fl_Value_Output.cxx +++ b/src/Fl_Value_Output.cxx @@ -34,10 +34,11 @@ void Fl_Value_Output::draw() { fl_color(color()); fl_rectf(X, Y, W, H); } - std::string buf = format_str(); + char buf[129]; + format(buf); fl_color(active_r() ? textcolor() : fl_inactive(textcolor())); fl_font(textfont(), textsize()); - fl_draw(buf.c_str(),X,Y,W,H,FL_ALIGN_LEFT); + fl_draw(buf,X,Y,W,H,FL_ALIGN_LEFT); } int Fl_Value_Output::handle(int event) { -- cgit v1.2.3