summaryrefslogtreecommitdiff
path: root/dgl/ImageWidgets.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dgl/ImageWidgets.hpp')
-rw-r--r--dgl/ImageWidgets.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/dgl/ImageWidgets.hpp b/dgl/ImageWidgets.hpp
index 0e1e1ddd..ac8a3abb 100644
--- a/dgl/ImageWidgets.hpp
+++ b/dgl/ImageWidgets.hpp
@@ -25,8 +25,13 @@ START_NAMESPACE_DGL
// -----------------------------------------------------------------------
+#ifndef DISTRHO_OS_HAIKU
class ImageAboutWindow : public Window,
public Widget
+#else
+// crash when creating or opening 2nd window
+class ImageAboutWindow
+#endif
{
public:
explicit ImageAboutWindow(Window& parent, const Image& image = Image());
@@ -34,11 +39,15 @@ public:
void setImage(const Image& image);
+#ifndef DISTRHO_OS_HAIKU
protected:
void onDisplay() override;
bool onKeyboard(const KeyboardEvent&) override;
bool onMouse(const MouseEvent&) override;
void onReshape(uint width, uint height) override;
+#else
+ void exec() {}
+#endif
private:
Image fImgBackground;