diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 21:32:25 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-05 21:32:25 +0500 |
| commit | dc39575fb3ef90e5a2689babe7fb335cd88f6727 (patch) | |
| tree | 24f6cef8f2b558ae6f1f812c75be0c09a53fe417 /src/Fl_Value_Output.cxx | |
| parent | 7d3793ce1d8cb26e7608bf859beca21359cec6e9 (diff) | |
wip
Diffstat (limited to 'src/Fl_Value_Output.cxx')
| -rw-r--r-- | src/Fl_Value_Output.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |
