diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-07 19:08:39 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-07 19:08:39 -0400 |
| commit | ec332870c23ff089edf4669e1efbf0fc930e4b64 (patch) | |
| tree | b9b412b8e4452172944d36f495572417b41cce0f | |
| parent | 7b1dfbf1d6de954efdb5d9d9d4df61a98935ddd4 (diff) | |
Fixed compilation errors.
| -rw-r--r-- | new/stack.c | 8 | ||||
| -rw-r--r-- | new/uipriv.h | 1 |
2 files changed, 5 insertions, 4 deletions
diff --git a/new/stack.c b/new/stack.c index 37c469a..396e9f6 100644 --- a/new/stack.c +++ b/new/stack.c @@ -28,10 +28,10 @@ static void stackSetParent(uiControl *c, uintptr_t parent) S(c)->parent = parent; for (i = 0; i < S(c)->len; i++) - (*(S(c)->controls[i]->setParent))(S(c)->controls[i], S(c)->parent)); + (*(S(c)->controls[i]->setParent))(S(c)->controls[i], S(c)->parent); } -static uiSize stackPreferredSize)(uiControl *c, uiSizing *d) +static uiSize stackPreferredSize(uiControl *c, uiSizing *d) { stack *s = S(c); int xpadding, ypadding; @@ -85,7 +85,7 @@ static uiSize stackPreferredSize)(uiControl *c, uiSizing *d) if (s->vertical) size.height += nStretchy * maxsht; else - size.width += nStretchy * maxwid; + size.width += nStretchy * maxswid; return size; } @@ -187,7 +187,7 @@ uiControl *uiNewVerticalStack(void) { uiControl *c; - c = newHorizontalStack(); + c = uiNewHorizontalStack(); S(c)->vertical = 1; return c; } diff --git a/new/uipriv.h b/new/uipriv.h index 4b150dd..0500f74 100644 --- a/new/uipriv.h +++ b/new/uipriv.h @@ -1,4 +1,5 @@ // 6 april 2015 +#include <stdlib.h> #include "ui.h" typedef struct uiSize uiSize; |
