diff options
author | corvid <corvid@lavabit.com> | 2009-08-10 06:40:59 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-08-10 06:40:59 +0000 |
commit | 938ef1f004a5c22c665e9ec94e0b07cfc80e860d (patch) | |
tree | 2cee2747c0ceef296c774e515e864b269e95079c | |
parent | a73f68c762425ee2c410ff1e1880c535a4eb844f (diff) |
fltk widget types are not bits
-rw-r--r-- | dw/fltkui.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index f8f3e0f0..aba6e1fe 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -193,7 +193,8 @@ void FltkResource::setWidgetStyle (::fltk::Widget *widget, widget->color(normal_bg); widget->buttoncolor(normal_bg); widget->selection_textcolor(normal_bg); - if (!(widget->type() & (::fltk::Widget::RADIO|::fltk::Widget::TOGGLE))) { + if (widget->type() != ::fltk::Widget::RADIO && + widget->type() != ::fltk::Widget::TOGGLE) { /* it looks awful to highlight the buttons */ widget->highlight_color(bg->colors[FltkColor::SHADING_LIGHT]); } |