diff options
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) { |
