Browse Source

Do not show resize handle in mini variant

Signed-off-by: falkTX <falktx@falktx.com>
tags/23.02
falkTX 2 years ago
parent
commit
e418bb17c6
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 12 additions and 2 deletions
  1. +1
    -1
      dpf
  2. +9
    -0
      src/CardinalCommon.cpp
  3. +1
    -0
      src/CardinalCommon.hpp
  4. +1
    -1
      src/override/Scene.cpp

+ 1
- 1
dpf

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

+ 9
- 0
src/CardinalCommon.cpp 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;


+ 1
- 0
src/CardinalCommon.hpp View File

@@ -43,6 +43,7 @@ namespace window {
void generateScreenshot();
}

bool isMini();
bool isStandalone();

#ifdef ARCH_WIN


+ 1
- 1
src/override/Scene.cpp View File

@@ -139,7 +139,7 @@ Scene::Scene() {
browser->hide();
addChild(browser);

if (isStandalone())
if (isStandalone() || isMini())
return;

internal->resizeHandle = new ResizeHandle;


Loading…
Cancel
Save