clap

CLAP Audio Plugin API
Log | Files | Refs | README | LICENSE

commit 0e6fe5caf89ed6475f9225fc922691830ac8ff1b
parent 1c27af3de3d817f05ad6b39f81a313b69c154124
Author: Alexandre Bique <bique.alexandre@gmail.com>
Date:   Mon,  4 Apr 2022 12:02:35 +0200

Better to return bool

Diffstat:
Minclude/clap/ext/gui.h | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/clap/ext/gui.h b/include/clap/ext/gui.h @@ -122,8 +122,10 @@ typedef struct clap_plugin_gui { // If the plugin prefers to work out the scaling factor itself by querying the OS directly, // then ignore the call. // + // Returns false if the call was ignored. + // Returns true if the scaling could be applied, false otherwise. // [main-thread] - void (*set_scale)(const clap_plugin_t *plugin, double scale); + bool (*set_scale)(const clap_plugin_t *plugin, double scale); // Get the current size of the plugin UI. // clap_plugin_gui->create() must have been called prior to asking the size.