Repository navigation
fix(channels): sync Channel::mSettings from ChannelOptions (meta #2580 A3) - #2582
Conversation
…plyConfig Channel::showPixels() builds ReorderingPixelIteratorAny from mSettings.rgbw()/rgbww(), but the constructor and applyConfig() never assigned mSettings from the incoming ChannelOptions. As a result any channel configured via ChannelOptions::mWhiteCfg silently encoded as plain RGB. Assign mSettings = options/config.options before calling applyWhiteCfg so the variant survives to showPixels(). Addresses CodeRabbit finding A3 from meta #2580 (originally from #2560).
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR adds explicit synchronization of the ChangesSettings Synchronization in Channel
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Channel::showPixels()buildsReorderingPixelIteratorAnyfrommSettings.rgbw()/rgbww(), but neither the constructor norapplyConfig()ever assignedmSettingsfrom the incomingChannelOptions. Any channel configured viaChannelOptions::mWhiteCfgtherefore silently encoded as plain RGB.This PR assigns
mSettings = options;(andmSettings = config.options;inapplyConfig) before the existingapplyWhiteCfg(*this, ...)calls so the variant survives toshowPixels().Addresses meta-issue #2580 finding A3 (originally CodeRabbit on #2560 — #2560 (comment)).
Test plan
bash lintSummary by CodeRabbit