diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-07 14:34:53 +0200 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2009-06-07 14:34:53 +0200 |
commit | 44d18d238ac0a12d3582befd2dec1c0d886ec012 (patch) | |
tree | 5434b68da349af866f8fe60ce5eb252b181e0bb8 | |
parent | 0580d9984c225cd659e36ca484ad104e1f2f702b (diff) |
clarify format() call
-rw-r--r-- | src/Fl_Value_Dial.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Value_Dial.cxx b/src/Fl_Value_Dial.cxx index fe2a3fd..9b54458 100644 --- a/src/Fl_Value_Dial.cxx +++ b/src/Fl_Value_Dial.cxx @@ -21,6 +21,7 @@ Fl_Value_Dial::Fl_Value_Dial(int X, int Y, int W, int H, const char*l) void Fl_Value_Dial::draw() { int sxx = x(), syy = y(), sww = w(), shh = h(); int bxx = x(), byy = y(), bww = w(), bhh = h(); + char buf[128]; if (damage()&FL_DAMAGE_ALL) draw_box(box(),sxx,syy,sww,shh,color()); Fl_Dial::draw(sxx+Fl::box_dx(box()), @@ -28,8 +29,7 @@ void Fl_Value_Dial::draw() { sww-Fl::box_dw(box()), shh-Fl::box_dh(box())); - char buf[128]; - format(buf); + format(buf); // prints at most 20 chars fl_font(textfont(), textsize()); fl_color(active_r() ? textcolor() : fl_inactive(textcolor())); |