summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES3
-rw-r--r--src/Fl_Pack.cxx10
2 files changed, 8 insertions, 5 deletions
diff --git a/CHANGES b/CHANGES
index bdc99d5c7..efbeba383 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
CHANGES IN FLTK 1.1.4
+ - Fl_Pack ignored the box() setting and cleared any
+ unused areas to the widget color; it now only does so
+ if the box() is set to something other than FL_NO_BOX.
- Updated the Fl_Tabs widget to offset the first tab by
the box dx value to avoid visual errors.
- Updated the plastic up box to draw only a single
diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx
index 26e897658..dd9553246 100644
--- a/src/Fl_Pack.cxx
+++ b/src/Fl_Pack.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Pack.cxx,v 1.6.2.4.2.4 2003/01/30 21:42:25 easysw Exp $"
+// "$Id: Fl_Pack.cxx,v 1.6.2.4.2.5 2003/05/16 18:43:40 easysw Exp $"
//
// Packing widget for the Fast Light Tool Kit (FLTK).
//
@@ -90,7 +90,7 @@ void Fl_Pack::draw() {
else
H = th - rh;
}
- if (spacing_ && current_position>maximum_position &&
+ if (spacing_ && current_position>maximum_position && box() &&
(X != o->x() || Y != o->y() || d&FL_DAMAGE_ALL)) {
fl_color(color());
if (horizontal())
@@ -112,13 +112,13 @@ void Fl_Pack::draw() {
}
if (horizontal()) {
- if (maximum_position < tx+tw) {
+ if (maximum_position < tx+tw && box()) {
fl_color(color());
fl_rectf(maximum_position, ty, tx+tw-maximum_position, th);
}
tw = maximum_position-tx;
} else {
- if (maximum_position < ty+th) {
+ if (maximum_position < ty+th && box()) {
fl_color(color());
fl_rectf(tx, maximum_position, tw, ty+th-maximum_position);
}
@@ -132,5 +132,5 @@ void Fl_Pack::draw() {
}
//
-// End of "$Id: Fl_Pack.cxx,v 1.6.2.4.2.4 2003/01/30 21:42:25 easysw Exp $".
+// End of "$Id: Fl_Pack.cxx,v 1.6.2.4.2.5 2003/05/16 18:43:40 easysw Exp $".
//