diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-02 14:29:43 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2006-10-02 14:29:43 +0000 |
| commit | 849ecabf538ff53965ef652bf4f2d0581cd5f8b4 (patch) | |
| tree | 76632b542827693a2f85e269be18eff0304efd18 | |
| parent | 5e39761d40a1f630d6ea1e7e28b47f7ad2a0e2d2 (diff) | |
Fix light button drawing so that the glowing LED mode is only used when
Fl::scheme() is "plastic".
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5502 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_Light_Button.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Light_Button.cxx b/src/Fl_Light_Button.cxx index 531064913..14943419f 100644 --- a/src/Fl_Light_Button.cxx +++ b/src/Fl_Light_Button.cxx @@ -35,6 +35,7 @@ #include <FL/Fl.H> #include <FL/Fl_Light_Button.H> #include <FL/fl_draw.H> +#include "flstring.h" void Fl_Light_Button::draw() { if (box()) draw_box(this==Fl::pushed() ? fl_down(box()) : box(), color()); @@ -118,7 +119,7 @@ void Fl_Light_Button::draw() { int ww = W/2+1; int xx = dx; if (w()<ww+2*xx) xx = (w()-ww)/2; - if (Fl::scheme()) { + if (Fl::scheme() && !strcmp(Fl::scheme(), "plastic")) { col = active_r() ? selection_color() : fl_inactive(selection_color()); fl_color(value() ? col : fl_color_average(col, FL_BLACK, 0.5f)); fl_pie(x()+xx, y()+dy+1, ww, hh, 0, 360); |
