Author: matt
Date: 2012-05-30 14:23:59 -0700 (Wed, 30 May 2012)
New Revision: 9562
Log:
Fixed LightButton
Modified:
branches/branch-3.0/src/fltk3/LightButton.cxx
Modified: branches/branch-3.0/src/fltk3/LightButton.cxx
===================================================================
--- branches/branch-3.0/src/fltk3/LightButton.cxx 2012-05-30 21:18:07 UTC
(rev 9561)
+++ branches/branch-3.0/src/fltk3/LightButton.cxx 2012-05-30 21:23:59 UTC
(rev 9562)
@@ -46,7 +46,7 @@
} else {
col = color();
}
- if (box()) draw_box(this==fltk3::pushed() ? fltk3::down(box()) : box(), col);
+ if (box()!=fltk3::NO_BOX) draw_box(this==fltk3::pushed() ?
fltk3::down(box()) : box(), col);
col = value() ? (active_r() ? selection_color() :
fltk3::inactive(selection_color())) : color();
int W;
@@ -57,7 +57,7 @@
dy = (h() - W) / 2;
// if (dy < 0) dy = 0; // neg. offset o.k. for vertical centering
- if (down_box()) {
+ if (down_box()!=fltk3::NO_BOX) {
// draw other down_box() styles:
fltk3::Box* db = down_box();
if ( db==fltk3::DOWN_BOX
@@ -161,7 +161,7 @@
{
switch (event) {
case fltk3::RELEASE:
- if (box()) redraw();
+ if (box()!=fltk3::NO_BOX) redraw();
default:
return Button::handle(event);
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit