summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfalkTX <falktx@gmail.com>2018-09-30 10:02:11 +0200
committerfalkTX <falktx@gmail.com>2018-09-30 10:02:11 +0200
commit2d02c43c6dad446ea20983ba2b9cb5b19d05ae45 (patch)
treeb2ec7376c59590e3efdad91e9741e746a9c60398
parent7cf42d65ebab1544583120c4da9981ac1b8b5a43 (diff)
Fix build and fix a few typos
-rw-r--r--dgl/src/pugl/pugl_osx.m12
-rw-r--r--dgl/src/pugl/pugl_win.cpp12
-rw-r--r--distrho/src/DistrhoUIInternal.hpp2
-rw-r--r--examples/Info/InfoExampleUI.cpp2
4 files changed, 26 insertions, 2 deletions
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: