diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-18 23:41:04 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-10-18 23:41:04 +0000 |
| commit | 874fc2ecb097b0f5c2b757bc7e5740b0d885b03f (patch) | |
| tree | 6e521669fa62a2cd729a39900e1ce9c422d84a56 /src/Fl_Light_Button.cxx | |
| parent | 621a34c576e767e14c0f4d7a71e015e0cf75ec40 (diff) | |
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
Diffstat (limited to 'src/Fl_Light_Button.cxx')
| -rw-r--r-- | src/Fl_Light_Button.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 $". // |
