From 5c8458e37741287c7fa6537dd759368a9e494863 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 3 Sep 2025 14:04:18 +0200 Subject: [PATCH] VST3: PSL extension color format --- libs/ardour/vst3_plugin.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ardour/vst3_plugin.cc b/libs/ardour/vst3_plugin.cc index b546bca212..c789ed7e60 100644 --- a/libs/ardour/vst3_plugin.cc +++ b/libs/ardour/vst3_plugin.cc @@ -2880,10 +2880,11 @@ VST3PI::getContextInfoValue (int32& value, FIDString id) } else if (0 == strcmp (id, ContextInfo::kIndex)) { value = s->presentation_info ().order (); } else if (0 == strcmp (id, ContextInfo::kColor)) { - value = s->presentation_info ().color (); -#if BYTEORDER == kBigEndian + value = s->presentation_info ().color (); // RGBA + /* spec says "int32: RGBA, starts with red value in lowest byte" so effectively ABGR + * https://github.com/fenderdigital/presonus-plugin-extensions/blob/ff17b53f7e0c871921f0983aebca6d657542a67f/ipslcontextinfo.h#L195 + */ SWAP_32 (value) // RGBA32 -> ABGR32 -#endif } else if (0 == strcmp (id, ContextInfo::kVisibility)) { value = s->is_hidden () ? 0 : 1; } else if (0 == strcmp (id, ContextInfo::kSelected)) {