Okay I have no fucking idea what's going on

This commit is contained in:
Pietro Gagliardi 2015-04-11 17:23:36 -04:00
parent a1b4b96bb9
commit a0033784b7
1 changed files with 4 additions and 0 deletions

View File

@ -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;