Browse Source

Better default idle time value for standalones

Signed-off-by: falkTX <falktx@falktx.com>
pull/282/head
falkTX 4 years ago
parent
commit
a8ab64504d
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 1 deletions
  1. +1
    -1
      dgl/Application.hpp
  2. +4
    -0
      examples/Info/ResizeHandle.hpp

+ 1
- 1
dgl/Application.hpp View File

@@ -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.


+ 4
- 0
examples/Info/ResizeHandle.hpp View File

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


Loading…
Cancel
Save