DPF

DISTRHO Plugin Framework
Log | Files | Refs | Submodules | README | LICENSE

commit a8ab64504d52c4dd6099d26db97674c390989dbc
parent d2b96431b2a5790e9d281f97e09e42ab2f90a927
Author: falkTX <falktx@falktx.com>
Date:   Sun, 30 May 2021 23:04:41 +0100

Better default idle time value for standalones

Signed-off-by: falkTX <falktx@falktx.com>

Diffstat:
Mdgl/Application.hpp | 2+-
Mexamples/Info/ResizeHandle.hpp | 4++++
2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/dgl/Application.hpp b/dgl/Application.hpp @@ -56,7 +56,7 @@ public: idle() is called at regular intervals. @note This function is meant for standalones only, *never* call this from plugins. */ - void exec(uint idleTimeInMs = 10); + void exec(uint idleTimeInMs = 30); /** Quit the application. diff --git a/examples/Info/ResizeHandle.hpp b/examples/Info/ResizeHandle.hpp @@ -112,8 +112,12 @@ protected: if (resizingSize.getWidth() < minWidth) resizingSize.setWidth(minWidth); + if (resizingSize.getWidth() > 16384) + resizingSize.setWidth(16384); if (resizingSize.getHeight() < minHeight) resizingSize.setHeight(minHeight); + if (resizingSize.getHeight() > 16384) + resizingSize.setHeight(16384); setSize(resizingSize.getWidth(), resizingSize.getHeight()); return true;