From b9c69353729de435757ed4d843499c983899092f Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Fri, 15 Oct 1999 08:14:37 +0000 Subject: Fixed the shiny demo (and a DD program). Note: this fix is not in fltk 2.0. It correctly draws the box behind a slider. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@776 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Slider.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/Fl_Slider.cxx b/src/Fl_Slider.cxx index eb779565d..e72fc7b3a 100644 --- a/src/Fl_Slider.cxx +++ b/src/Fl_Slider.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Slider.cxx,v 1.8.2.1 1999/05/14 09:07:08 bill Exp $" +// "$Id: Fl_Slider.cxx,v 1.8.2.2 1999/10/15 08:14:37 bill Exp $" // // Slider widget for the Fast Light Tool Kit (FLTK). // @@ -84,8 +84,7 @@ int Fl_Slider::scrollvalue(int p, int w, int t, int l) { void Fl_Slider::draw_bg(int x, int y, int w, int h) { if (!(damage()&FL_DAMAGE_ALL)) { // not a complete redraw - fl_color(color()); - fl_rectf(x, y, w, h); + draw_box(); } Fl_Color black = active_r() ? FL_BLACK : FL_INACTIVE_COLOR; if (type() == FL_VERT_NICE_SLIDER) { @@ -238,5 +237,5 @@ int Fl_Slider::handle(int event) { } // -// End of "$Id: Fl_Slider.cxx,v 1.8.2.1 1999/05/14 09:07:08 bill Exp $". +// End of "$Id: Fl_Slider.cxx,v 1.8.2.2 1999/10/15 08:14:37 bill Exp $". // -- cgit v1.2.3