diff --git a/dgl/src/pugl/pugl_osx.m b/dgl/src/pugl/pugl_osx.m index f9570333..738103f3 100644 --- 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 index 5d0cd876..9990b8ef 100644 --- 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 index 129e3393..e05385cd 100644 --- 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 index 2299f5fa..a86ba780 100644 --- 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: