diff options
| author | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 18:12:40 +0500 |
|---|---|---|
| committer | maxim nikonov <maxim.nikonov@hqo.co> | 2026-02-06 18:12:40 +0500 |
| commit | b4995f979d127cea667b4e2b71c91e9db4ab52ef (patch) | |
| tree | fbebc775e10932bace8d6a7c3481b1ba200c64db /src/Fl_Pack.cxx | |
| parent | 9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (diff) | |
wip
Diffstat (limited to 'src/Fl_Pack.cxx')
| -rw-r--r-- | src/Fl_Pack.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Pack.cxx b/src/Fl_Pack.cxx index f28218c20..26e4f3ecb 100644 --- a/src/Fl_Pack.cxx +++ b/src/Fl_Pack.cxx @@ -75,11 +75,12 @@ void Fl_Pack::draw() { int maximum_position = current_position; uchar d = damage(); Fl_Widget*const* a = array(); + int i; if (horizontal()) { rw = -spacing_; rh = th; - for (int i = children(); i--;) + for (i = children(); i--;) if (child(i)->visible()) { if (child(i) != this->resizable()) rw += child(i)->w(); rw += spacing_; @@ -88,13 +89,13 @@ void Fl_Pack::draw() { rw = tw; rh = -spacing_; - for (int i = children(); i--;) + for (i = children(); i--;) if (child(i)->visible()) { if (child(i) != this->resizable()) rh += child(i)->h(); rh += spacing_; } } - for (int i = children(); i--;) { + for (i = children(); i--;) { Fl_Widget* o = *a++; if (o->visible()) { int X,Y,W,H; |
