summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-11 17:23:36 -0400
committerPietro Gagliardi <[email protected]>2015-04-11 17:23:36 -0400
commita0033784b736380c6cf1ccaec6421394ee2562fc (patch)
tree784643912872126c848eec03697cbe1c7ca0d6a7
parenta1b4b96bb962c4d69e7af7229efa52f3e2767433 (diff)
Okay I have no fucking idea what's going on
-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;