Browse Source

Fix build and fix a few typos

pull/83/head
falkTX 5 years ago
parent
commit
2d02c43c6d
4 changed files with 26 additions and 2 deletions
  1. +12
    -0
      dgl/src/pugl/pugl_osx.m
  2. +12
    -0
      dgl/src/pugl/pugl_win.cpp
  3. +1
    -1
      distrho/src/DistrhoUIInternal.hpp
  4. +1
    -1
      examples/Info/InfoExampleUI.cpp

+ 12
- 0
dgl/src/pugl/pugl_osx.m View File

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

+ 12
- 0
dgl/src/pugl/pugl_win.cpp View File

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

+ 1
- 1
distrho/src/DistrhoUIInternal.hpp View File

@@ -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) {}


+ 1
- 1
examples/Info/InfoExampleUI.cpp View File

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


Loading…
Cancel
Save