Fix resize recursion when triggered via host
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
da61999de5
commit
7860e6e539
2 changed files with 7 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue