DPF

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

commit 2d02c43c6dad446ea20983ba2b9cb5b19d05ae45
parent 7cf42d65ebab1544583120c4da9981ac1b8b5a43
Author: falkTX <falktx@gmail.com>
Date:   Sun, 30 Sep 2018 10:01:44 +0200

Fix build and fix a few typos

Diffstat:
Mdgl/src/pugl/pugl_osx.m | 12++++++++++++
Mdgl/src/pugl/pugl_win.cpp | 12++++++++++++
Mdistrho/src/DistrhoUIInternal.hpp | 2+-
Mexamples/Info/InfoExampleUI.cpp | 2+-
4 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m @@ -559,3 +559,15 @@ puglGetNativeWindow(PuglView* view) { return (PuglNativeWindow)view->impl->glview; } + +int +puglUpdateGeometryConstraints(PuglView* view, int min_width, int min_height, bool aspect) +{ + // TODO + return 1; + + (void)view; + (void)min_width; + (void)min_height; + (void)aspect; +} diff --git a/dgl/src/pugl/pugl_win.cpp b/dgl/src/pugl/pugl_win.cpp @@ -468,3 +468,15 @@ puglGetNativeWindow(PuglView* view) { return (PuglNativeWindow)view->impl->hwnd; } + +int +puglUpdateGeometryConstraints(PuglView* view, int min_width, int min_height, bool aspect) +{ + // TODO + return 1; + + (void)view; + (void)min_width; + (void)min_height; + (void)aspect; +} diff --git a/distrho/src/DistrhoUIInternal.hpp b/distrho/src/DistrhoUIInternal.hpp @@ -436,7 +436,7 @@ public: bool handlePluginSpecial(const bool press, const Key key) { - return glWindow.handlePluginKeyboard(press, key); + return glWindow.handlePluginSpecial(press, key); } #else void setWindowSize(const uint, const uint, const bool) {} diff --git a/examples/Info/InfoExampleUI.cpp b/examples/Info/InfoExampleUI.cpp @@ -37,7 +37,7 @@ public: fSampleRate = getSampleRate(); fFont = createFontFromFile("sans", "/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf"); - setGeometryConstraints(405, 256, false); + setGeometryConstraints(405, 256, true); } protected: