DPF

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

commit 7c5a6db2c3a44d568b1c8805273a24bdd4fd6d4f
parent 12b54c705695a1cdbd7c8163bb22571a25991827
Author: falkTX <falktx@falktx.com>
Date:   Fri,  3 Sep 2021 10:56:27 +0100

Add a few comments

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

Diffstat:
Mdgl/NanoVG.hpp | 1+
Mdgl/Window.hpp | 2+-
Mtests/FileBrowserDialog.cpp | 2+-
3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dgl/NanoVG.hpp b/dgl/NanoVG.hpp @@ -923,6 +923,7 @@ private: */ inline void onDisplay() override { + // NOTE maybe should use BaseWidget::getWindow().getScaleFactor() as 3rd arg ? NanoVG::beginFrame(BaseWidget::getWidth(), BaseWidget::getHeight()); onNanoDisplay(); NanoVG::endFrame(); diff --git a/dgl/Window.hpp b/dgl/Window.hpp @@ -133,7 +133,7 @@ public: /** Desstructor for clearing current context, if not done yet */ ~ScopedGraphicsContext(); - /** Early context clearing, useful for standalone windows. */ + /** Early context clearing, useful for standalone windows not created by you. */ void done(); DISTRHO_DECLARE_NON_COPYABLE(ScopedGraphicsContext) diff --git a/tests/FileBrowserDialog.cpp b/tests/FileBrowserDialog.cpp @@ -39,7 +39,7 @@ public: #endif setResizable(true); setSize(500, 200); - setGeometryConstraints(500, 200, true, false); + setGeometryConstraints(500, 200, true); setTitle("FileBrowserDialog"); done(); }