Browse Source

Fix clap resize hints for hosts that ask before creating the UI

Signed-off-by: falkTX <falktx@falktx.com>
pull/509/head^2
falkTX 1 month ago
parent
commit
a565caeb21
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      distrho/src/DistrhoPluginCLAP.cpp

+ 3
- 3
distrho/src/DistrhoPluginCLAP.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2024 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2025 Filipe Coelho <falktx@falktx.com>
*
* Permission to use, copy, modify, and/or distribute this software for any purpose with
* or without fee is hereby granted, provided that the above copyright notice and this
@@ -314,7 +314,7 @@ public:

bool getResizeHints(clap_gui_resize_hints_t* const hints) const
{
if (canResize())
if (fUI != nullptr && fUI->isResizable())
{
uint minimumWidth, minimumHeight;
bool keepAspectRatio;
@@ -346,7 +346,7 @@ public:

bool adjustSize(uint32_t* const width, uint32_t* const height) const
{
if (canResize())
if (fUI != nullptr && fUI->isResizable())
{
uint minimumWidth, minimumHeight;
bool keepAspectRatio;


Loading…
Cancel
Save