add support for setting an explicit min size for libui controls. for now only supported by uiArea.

This commit is contained in:
StapleButter
2017-10-02 01:58:09 +02:00
parent ce592a1d80
commit 09920126dd
4 changed files with 21 additions and 3 deletions

View File

@ -55,9 +55,11 @@ uiWindowsControlAllDefaults(uiArea)
static void uiAreaMinimumSize(uiWindowsControl *c, int *width, int *height)
{
// TODO
*width = 1;
*height = 1;
*width = c->c.MinWidth;
if (*width < 1) *width = 1;
*height = c->c.MinHeight;
if (*height < 1) *height = 1;
}
ATOM registerAreaClass(HICON hDefaultIcon, HCURSOR hDefaultCursor)