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/forms_compatibility.cxx | |
| parent | 9575eb0a1ffa8150f70f88b5f6b55f342c3c0088 (diff) | |
wip
Diffstat (limited to 'src/forms_compatibility.cxx')
| -rw-r--r-- | src/forms_compatibility.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/forms_compatibility.cxx b/src/forms_compatibility.cxx index c4901fedc..8c42efdc7 100644 --- a/src/forms_compatibility.cxx +++ b/src/forms_compatibility.cxx @@ -28,6 +28,7 @@ void fl_end_form() { void Fl_Group::forms_end() { // set the dimensions of a group to surround contents const int nc = children(); + int i; if (nc && !w()) { Fl_Widget*const* a = array(); Fl_Widget* o = *a++; @@ -35,7 +36,7 @@ void Fl_Group::forms_end() { int ry = o->y(); int rw = rx+o->w(); int rh = ry+o->h(); - for (int i = nc - 1; i--;) { + for (i = nc - 1; i--;) { o = *a++; if (o->x() < rx) rx = o->x(); if (o->y() < ry) ry = o->y(); @@ -52,7 +53,7 @@ void Fl_Group::forms_end() { Fl_Widget* o = as_window() ? this : window(); int Y = o->h(); Fl_Widget*const* a = array(); - for (int i = nc; i--;) { + for (i = nc; i--;) { Fl_Widget* ow = *a++; int newy = Y - ow->y() - ow->h(); ow->y(newy); |
