Fix resize recursion when triggered via host

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-06-20 11:34:07 +01:00
parent da61999de5
commit 7860e6e539
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
2 changed files with 7 additions and 1 deletions

View file

@ -355,6 +355,11 @@ void Window::setSize(math::Vec size) {
ui->setSize(internal->size.x, internal->size.y);
}
void WindowSetInternalSize(rack::window::Window* const window, math::Vec size) {
size = size.max(WINDOW_SIZE_MIN);
window->internal->size = size;
}
void Window::run() {
internal->frame = 0;