diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-02 15:39:39 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1998-12-02 15:39:39 +0000 |
| commit | 849e11623e44a62599d62ba9425f7e96146f555d (patch) | |
| tree | d36643917eb5f059da6073b8eb07f202d24b0105 /src/Fl_Counter.cxx | |
| parent | db1205b420680cd6ee13372628cb4bbbb06f1e06 (diff) | |
Changes from Carl to get rid of default_ variables...
git-svn-id: file:///fltk/svn/fltk/trunk@106 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Counter.cxx')
| -rw-r--r-- | src/Fl_Counter.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Fl_Counter.cxx b/src/Fl_Counter.cxx index 23899ef91..99bc92a32 100644 --- a/src/Fl_Counter.cxx +++ b/src/Fl_Counter.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Counter.cxx,v 1.4 1998/10/21 14:20:01 mike Exp $" +// "$Id: Fl_Counter.cxx,v 1.5 1998/12/02 15:39:30 mike Exp $" // // Counter widget for the Fast Light Tool Kit (FLTK). // @@ -26,13 +26,12 @@ #include <FL/Fl.H> #include <FL/Fl_Counter.H> #include <FL/fl_draw.H> -#include <FL/Fl_Input.H> // for default_font void Fl_Counter::draw() { int i; Fl_Boxtype boxtype[5]; boxtype[0] = box(); - if (boxtype[0] == FL_UP_BOX) boxtype[0] = Fl_Input::default_box(); + if (boxtype[0] == FL_UP_BOX) boxtype[0] = FL_DOWN_BOX; for (i=1; i<5; i++) if (mouseobj == i) boxtype[i] = down(box()); @@ -55,8 +54,7 @@ void Fl_Counter::draw() { } draw_box(boxtype[0], xx[0], y(), ww[0], h(), FL_WHITE); - fl_font(textfont(), textsize(), - Fl_Input::default_font(), Fl_Input::default_size()); + fl_font(textfont(), textsize()); fl_color(active_r() ? textcolor() : inactive(textcolor())); char str[128]; format(str); fl_draw(str, xx[0], y(), ww[0], h(), FL_ALIGN_CENTER); @@ -161,5 +159,5 @@ Fl_Counter::Fl_Counter(int x, int y, int w, int h, const char* l) } // -// End of "$Id: Fl_Counter.cxx,v 1.4 1998/10/21 14:20:01 mike Exp $". +// End of "$Id: Fl_Counter.cxx,v 1.5 1998/12/02 15:39:30 mike Exp $". // |
