From a8ab64504d52c4dd6099d26db97674c390989dbc Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 30 May 2021 23:05:08 +0100 Subject: [PATCH] Better default idle time value for standalones Signed-off-by: falkTX --- dgl/Application.hpp | 2 +- examples/Info/ResizeHandle.hpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dgl/Application.hpp b/dgl/Application.hpp index 3bac2f8a..8566760e 100644 --- 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 index ac66d69a..c24c9ebd 100644 --- 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;