mirror of
https://github.com/fltk/fltk.git
synced 2026-05-27 10:57:58 +08:00
Check buttons did not redraw properly with box() set to FL_NO_BOX
(STR #1440) src/Fl_Button.cxx: - Fl_Button::value(): Use redraw_label() if box() is not set. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5482 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.8
|
CHANGES IN FLTK 1.1.8
|
||||||
|
|
||||||
|
- Check buttons did not redraw properly with box() set to
|
||||||
|
FL_NO_BOX (STR #1440)
|
||||||
- Added the Bluecurve-inspired scheme "gtk+".
|
- Added the Bluecurve-inspired scheme "gtk+".
|
||||||
- Implemented alpha blending for WIN32
|
- Implemented alpha blending for WIN32
|
||||||
- Updated documentation (STR #1420, STR #1421)
|
- Updated documentation (STR #1420, STR #1421)
|
||||||
|
|||||||
+2
-1
@@ -40,7 +40,8 @@ int Fl_Button::value(int v) {
|
|||||||
clear_changed();
|
clear_changed();
|
||||||
if (value_ != v) {
|
if (value_ != v) {
|
||||||
value_ = v;
|
value_ = v;
|
||||||
redraw();
|
if (box()) redraw();
|
||||||
|
else redraw_label();
|
||||||
return 1;
|
return 1;
|
||||||
} else {
|
} else {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user