diff options
author | corvid <corvid@lavabit.com> | 2011-05-19 02:15:13 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-05-19 02:15:13 +0000 |
commit | c73820831ebc3e131b589554bc9558bcc693aa35 (patch) | |
tree | dd88ef647a6de964e3c34e89150eccbebfb89ab5 | |
parent | cf3a85c54bf483f86dea0ff952452cec25375be2 (diff) |
more
-rw-r--r-- | dw/fltkcomplexbutton.cc | 8 | ||||
-rw-r--r-- | dw/fltkcomplexbutton.hh | 3 |
2 files changed, 0 insertions, 11 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc index 63ce0086..359367bf 100644 --- a/dw/fltkcomplexbutton.cc +++ b/dw/fltkcomplexbutton.cc @@ -37,7 +37,6 @@ int ComplexButton::value(int v) { if (value_ != v) { value_ = v; if (box()) redraw(); - else redraw_label(); return 1; } else { return 0; @@ -47,13 +46,6 @@ int ComplexButton::value(int v) { void ComplexButton::draw() { Fl_Color col = value() ? selection_color() : color(); draw_box(value() ? (down_box()?down_box():fl_down(box())) : box(), col); - draw_backdrop(); - if (labeltype() == FL_NORMAL_LABEL && value()) { - Fl_Color c = labelcolor(); - labelcolor(fl_contrast(c, col)); - draw_label(); - labelcolor(c); - } else draw_label(); if (Fl::focus() == this) draw_focus(); // ComplexButton is a Group; draw its children diff --git a/dw/fltkcomplexbutton.hh b/dw/fltkcomplexbutton.hh index f0ab7a24..3a14cfb2 100644 --- a/dw/fltkcomplexbutton.hh +++ b/dw/fltkcomplexbutton.hh @@ -63,9 +63,6 @@ public: \param[in] b down box type */ void down_box(Fl_Boxtype b) {down_box_ = b;} - - /// (for backwards compatibility) - void down_color(unsigned c) {selection_color(c);} }; } // namespace ui |