diff options
author | corvid <corvid@lavabit.com> | 2012-12-10 20:23:28 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-12-10 20:23:28 +0000 |
commit | 3ad0c973b8a55403f5c658be691aa67c131849c7 (patch) | |
tree | c872831ef5a45141dd1bc695f4f0e9bf6738e43e | |
parent | 2421b5df238b6c3ec41b433d23299e53f0ffe800 (diff) |
don't bother with FLAT_BOX for image input
-rw-r--r-- | dw/fltkcomplexbutton.cc | 9 | ||||
-rw-r--r-- | dw/fltkui.cc | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc index 40c0a55d..2d7af185 100644 --- a/dw/fltkcomplexbutton.cc +++ b/dw/fltkcomplexbutton.cc @@ -96,14 +96,7 @@ int ComplexButton::handle(int event) { case FL_FOCUS : /* FALLTHROUGH */ case FL_UNFOCUS : if (Fl::visible_focus()) { - if (box() == FL_NO_BOX) { - // Widgets with the FL_NO_BOX boxtype need a parent to - // redraw, since it is responsible for redrawing the - // background... - int X = x() > 0 ? x() - 1 : 0; - int Y = y() > 0 ? y() - 1 : 0; - if (window()) window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); - } else redraw(); + redraw(); return 1; } else return 0; case FL_KEYBOARD : diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 064176de..4c3415c7 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -532,7 +532,7 @@ Fl_Widget *FltkComplexButtonResource::createNewWidget (core::Allocation button->callback (widgetCallback, this); button->when (FL_WHEN_RELEASE); if (!relief) - button->box(FL_FLAT_BOX); + button->box(FL_NO_BOX); flatView = new FltkFlatView (allocation->x + reliefXThickness (), allocation->y + reliefYThickness (), |