Removed an XForms compatibility "feature" that prevented the down

array of Fl_Menu_Button from drawing (STR #2141).


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2009-02-08 17:50:22 +00:00
parent 3ebc315ad2
commit 76254697c7
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
CHANGES IN FLTK 1.3.0
- Removed an XForms compatibility "feature" that prevented the down
array of Fl_Menu_Button from drawing (STR #2141).
- New helper class Fl_Watch to simplify safe handling of widget
deletion in callbacks. This is used in Fl_Widget::do_callback()
to prevent accessing widgets after deletion in the callback.

View File

@ -37,7 +37,7 @@ void Fl_Menu_Button::draw() {
draw_box(pressed_menu_button_ == this ? fl_down(box()) : box(), color());
draw_label();
if (Fl::focus() == this) draw_focus();
if (box() == FL_FLAT_BOX) return; // for XForms compatibility
// ** if (box() == FL_FLAT_BOX) return; // for XForms compatibility
int H = (labelsize()-3)&-2;
int X = x()+w()-H*2;
int Y = y()+(h()-H)/2;