mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-08-01 02:30:12 -06:00
add support for setting an explicit min size for libui controls. for now only supported by uiArea.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user