summaryrefslogtreecommitdiff
path: root/new/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'new/stack.c')
-rw-r--r--new/stack.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/new/stack.c b/new/stack.c
index c4f8ab3..5199804 100644
--- a/new/stack.c
+++ b/new/stack.c
@@ -172,6 +172,10 @@ static void stackResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width, in
c = s->controls[i].c;
uiControlPreferredSize(s->controls[i].c, d, &preferredWidth, &preferredHeight);
if (s->vertical) { // all controls have same width
+ // TODO TODO TODO TODO TODO TODO TODO
+ // for some reason, the 32-bit Windows build is clobbering some stacks's data pointer with this line
+ // I have no idea what's going on; it doesn't happen with the 64-bit version
+ // is gcc miscompiling something?
s->controls[i].width = width;
s->controls[i].height = preferredHeight;
stretchyht -= preferredHeight;