From 874fc2ecb097b0f5c2b757bc7e5740b0d885b03f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 18 Oct 2001 23:41:04 +0000 Subject: Get tooltips working with Fl_Slider and Fl_Counter-based widgets. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1640 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Light_Button.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Light_Button.cxx') diff --git a/src/Fl_Light_Button.cxx b/src/Fl_Light_Button.cxx index 21b8b40e2..a457375ee 100644 --- a/src/Fl_Light_Button.cxx +++ b/src/Fl_Light_Button.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.4 2001/09/30 22:40:56 easysw Exp $" +// "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.5 2001/10/18 23:41:04 easysw Exp $" // // Lighted button widget for the Fast Light Tool Kit (FLTK). // @@ -62,8 +62,8 @@ void Fl_Light_Button::draw() { draw_box(down_box(), x()+d, y()+d+1, W, W, color()); if (value()) { fl_color(col); - if (W > 14) { - fl_pie(x() + d + 4, y() + d + 5, W - 9, W - 9, 0.0, 360.0); + if (W > 12) { + fl_pie(x() + d + 4, y() + d + 5, W - 8, W - 8, 0.0, 360.0); } else { // Small circles don't draw well with some X servers... fl_rectf(x() + d + 5, y() + d + 5, 2, 4); @@ -105,5 +105,5 @@ Fl_Light_Button::Fl_Light_Button(int x, int y, int w, int h, const char* l) } // -// End of "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.4 2001/09/30 22:40:56 easysw Exp $". +// End of "$Id: Fl_Light_Button.cxx,v 1.4.2.3.2.5 2001/10/18 23:41:04 easysw Exp $". // -- cgit v1.2.3