Fixed compilation errors.
This commit is contained in:
parent
7b1dfbf1d6
commit
ec332870c2
|
@ -28,10 +28,10 @@ static void stackSetParent(uiControl *c, uintptr_t parent)
|
||||||
|
|
||||||
S(c)->parent = parent;
|
S(c)->parent = parent;
|
||||||
for (i = 0; i < S(c)->len; i++)
|
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);
|
stack *s = S(c);
|
||||||
int xpadding, ypadding;
|
int xpadding, ypadding;
|
||||||
|
@ -85,7 +85,7 @@ static uiSize stackPreferredSize)(uiControl *c, uiSizing *d)
|
||||||
if (s->vertical)
|
if (s->vertical)
|
||||||
size.height += nStretchy * maxsht;
|
size.height += nStretchy * maxsht;
|
||||||
else
|
else
|
||||||
size.width += nStretchy * maxwid;
|
size.width += nStretchy * maxswid;
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
@ -187,7 +187,7 @@ uiControl *uiNewVerticalStack(void)
|
||||||
{
|
{
|
||||||
uiControl *c;
|
uiControl *c;
|
||||||
|
|
||||||
c = newHorizontalStack();
|
c = uiNewHorizontalStack();
|
||||||
S(c)->vertical = 1;
|
S(c)->vertical = 1;
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
// 6 april 2015
|
// 6 april 2015
|
||||||
|
#include <stdlib.h>
|
||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
|
|
||||||
typedef struct uiSize uiSize;
|
typedef struct uiSize uiSize;
|
||||||
|
|
Loading…
Reference in New Issue