VST3: amend previous commit (fix setting color)

This commit is contained in:
Robin Gareus 2025-09-03 17:14:14 +02:00
parent 5c8458e377
commit 628d7491a8
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -3057,9 +3057,7 @@ VST3PI::setContextInfoValue (FIDString id, int32 value)
return kResultOk;
}
if (0 == strcmp (id, ContextInfo::kColor)) {
#if BYTEORDER == kBigEndian
SWAP_32 (value) // ABGR32 -> RGBA32
#endif
s->presentation_info ().set_color (value);
} else if (0 == strcmp (id, ContextInfo::kSelected)) {
std::shared_ptr<Stripable> stripable = s->session ().stripable_by_id (s->id ());