From 4cea3aee0c4153c7b7c2fc485b2e4ef37cbd3f19 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 9 Jul 2015 00:10:44 +0000 Subject: Fix box background drawing for deactivated widgets (STR #2907). Two new static methods have been introduced: - Fl::box_color(Fl_Color c) returns the bg color dependent on the widget's state (inactive_r()). - Fl::set_box_color(Fl_Color c) sets the correct bg color dependent on the widget's state by calling fl_color(Fl::box_color(c)). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'CHANGES') diff --git a/CHANGES b/CHANGES index f769db362..dc2506dc2 100644 --- a/CHANGES +++ b/CHANGES @@ -39,6 +39,9 @@ CHANGES IN FLTK 1.3.4 RELEASED: ??? ?? ???? Bug fixes + - Several box types were not drawn correctly when deactivated. + The background color for deactivated widgets is now correct: + fl_inactive(color()) (STR #2907). - Reading of .pbm image files is fixed: 1 is now interpreted as black, and images of width a multiple of 8 are correctly read. Note: if you relied on the faulty behavior you may need to fix @@ -47,15 +50,14 @@ CHANGES IN FLTK 1.3.4 RELEASED: ??? ?? ???? scheme's background (STR #3059). This was a regression since FLTK 1.3.0. - Fl_Text_Display: style buffer colors are no longer manipulated by - fl_contrast() for normal text drawing (fltk.coredev thread - started 04/08/15, Subject: "RFC: Fl_Text_Display style buffer color weirdness") + fl_contrast() for normal text drawing (fltk.coredev thread started + 04/08/15, Subject: "RFC: Fl_Text_Display style buffer color weirdness") - Fl_Tree::deactivate() now affects draw color of items (must have ABI 1.3.3 or higher enabled). For icons to draw deactivated, enable ABI 1.3.4. (test/tree has a 'deactivate tree' button) - - - Fixed possible bad border effect when a set of radio menu items - is located first in its menu (STR #3176): Fl_Menu_Item::set_only() - is deprecated and replaced by Fl_Menu_::set_only(Fl_Menu_item*). + - Fixed possible bad border effect when a set of radio menu items + is located first in its menu (STR #3176): Fl_Menu_Item::set_only() + is deprecated and replaced by Fl_Menu_::set_only(Fl_Menu_item*). CHANGES IN FLTK 1.3.3 RELEASED: Nov 03 2014 -- cgit v1.2.3