* Fix external UI build * Use default bool parameter in setWindowSize (non-DGL version)pull/92/head
@@ -67,12 +67,14 @@ public: | |||||
*/ | */ | ||||
bool isUserResizable() const noexcept; | bool isUserResizable() const noexcept; | ||||
#ifdef HAVE_DGL | |||||
/** | /** | ||||
Set geometry constraints for the UI when resized by the user, and optionally scale UI automatically. | Set geometry constraints for the UI when resized by the user, and optionally scale UI automatically. | ||||
@see Window::setGeometryConstraints(uint,uint,bool) | @see Window::setGeometryConstraints(uint,uint,bool) | ||||
@see Window::setScaling(double) | @see Window::setScaling(double) | ||||
*/ | */ | ||||
void setGeometryConstraints(uint minWidth, uint minHeight, bool keepAspectRatio, bool automaticallyScale = false); | void setGeometryConstraints(uint minWidth, uint minHeight, bool keepAspectRatio, bool automaticallyScale = false); | ||||
#endif | |||||
/* -------------------------------------------------------------------------------------------------------- | /* -------------------------------------------------------------------------------------------------------- | ||||
* Host state */ | * Host state */ | ||||
@@ -62,6 +62,7 @@ bool UI::isUserResizable() const noexcept | |||||
return pData->userResizable; | return pData->userResizable; | ||||
} | } | ||||
#ifdef HAVE_DGL | |||||
void UI::setGeometryConstraints(uint minWidth, uint minHeight, bool keepAspectRatio, bool automaticallyScale) | void UI::setGeometryConstraints(uint minWidth, uint minHeight, bool keepAspectRatio, bool automaticallyScale) | ||||
{ | { | ||||
DISTRHO_SAFE_ASSERT_RETURN(minWidth > 0,); | DISTRHO_SAFE_ASSERT_RETURN(minWidth > 0,); | ||||
@@ -72,7 +73,9 @@ void UI::setGeometryConstraints(uint minWidth, uint minHeight, bool keepAspectRa | |||||
pData->minHeight = minHeight; | pData->minHeight = minHeight; | ||||
getParentWindow().setGeometryConstraints(minWidth, minHeight, keepAspectRatio); | getParentWindow().setGeometryConstraints(minWidth, minHeight, keepAspectRatio); | ||||
} | } | ||||
#endif | |||||
/* ------------------------------------------------------------------------------------------------------------ | /* ------------------------------------------------------------------------------------------------------------ | ||||
* Host state */ | * Host state */ | ||||
@@ -460,7 +460,7 @@ public: | |||||
return glWindow.handlePluginSpecial(press, key); | return glWindow.handlePluginSpecial(press, key); | ||||
} | } | ||||
#else | #else | ||||
void setWindowSize(const uint, const uint, const bool) {} | |||||
void setWindowSize(const uint, const uint, const bool = false) {} | |||||
void setWindowTransientWinId(const uintptr_t) {} | void setWindowTransientWinId(const uintptr_t) {} | ||||
bool setWindowVisible(const bool) { return true; } | bool setWindowVisible(const bool) { return true; } | ||||
#endif | #endif | ||||