Draw resize handle in UI rather than custom opengl; Set min size

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-12-14 22:14:44 +00:00
parent 43951635e9
commit 36f144e501
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 67 additions and 24 deletions

View file

@ -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);
}