aboutsummaryrefslogtreecommitdiff
path: root/src/libui_sdl/libui/windows/box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libui_sdl/libui/windows/box.cpp')
-rw-r--r--src/libui_sdl/libui/windows/box.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libui_sdl/libui/windows/box.cpp b/src/libui_sdl/libui/windows/box.cpp
index c306989..5ed8447 100644
--- a/src/libui_sdl/libui/windows/box.cpp
+++ b/src/libui_sdl/libui/windows/box.cpp
@@ -38,7 +38,6 @@ static void boxRelayout(uiBox *b)
int i;
int minimumWidth, minimumHeight;
int nVisible;
- uiWindowsSizing *d;
if (b->controls->size() == 0)
return;
@@ -165,10 +164,8 @@ static void uiBoxMinimumSize(uiWindowsControl *c, int *width, int *height)
// these two contain the largest minimum width and height of all stretchy controls in the box
// all stretchy controls will use this value to determine the final minimum size
int maxStretchyWidth, maxStretchyHeight;
- int i;
int minimumWidth, minimumHeight;
int nVisible;
- uiWindowsSizing sizing;
*width = 0;
*height = 0;
@@ -235,6 +232,12 @@ static void uiBoxMinimumSizeChanged(uiWindowsControl *c)
boxRelayout(b);
}
+static void uiBoxSetMinSize(uiControl *c, int w, int h)
+{
+ // checkme
+ uiBoxMinimumSizeChanged(uiWindowsControl(c));
+}
+
uiWindowsControlDefaultLayoutRect(uiBox)
uiWindowsControlDefaultAssignControlIDZOrder(uiBox)