Do not show resize handle in mini variant

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2023-01-03 23:58:46 +00:00
parent 1497e54974
commit e418bb17c6
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
4 changed files with 12 additions and 2 deletions

2
dpf

@ -1 +1 @@
Subproject commit 207e0ae8720faa4db6f34192d83a0ee3b85b832a
Subproject commit 0c75ecb5db751eda5d5d7168f5299274c050766c

View file

@ -533,6 +533,15 @@ END_NAMESPACE_DISTRHO
namespace rack {
bool isMini()
{
#if CARDINAL_VARIANT_MINI
return true;
#else
return false;
#endif
}
bool isStandalone()
{
return std::strstr(getPluginFormatName(), "Standalone") != nullptr;

View file

@ -43,6 +43,7 @@ namespace window {
void generateScreenshot();
}
bool isMini();
bool isStandalone();
#ifdef ARCH_WIN

View file

@ -139,7 +139,7 @@ Scene::Scene() {
browser->hide();
addChild(browser);
if (isStandalone())
if (isStandalone() || isMini())
return;
internal->resizeHandle = new ResizeHandle;