Draw resize handle in UI rather than custom opengl; Set min size
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
43951635e9
commit
36f144e501
4 changed files with 67 additions and 24 deletions
|
|
@ -325,6 +325,9 @@ math::Vec Window::getSize() {
|
|||
|
||||
void Window::setSize(math::Vec size) {
|
||||
internal->size = size.max(minWindowSize);
|
||||
|
||||
if (DISTRHO_NAMESPACE::UI* const ui = internal->ui)
|
||||
ui->setSize(internal->size.x, internal->size.y);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue