Repository navigation
Fix MixerBoard Mute and Solo buttons display - #10099
Merged
Merged
Conversation
iv-m
marked this pull request as ready for review
December 19, 2025 19:30
|
Fixes #9368, in my testing. (And I'm the reporter, soooo...) |
ferdnyc
approved these changes
Dec 22, 2025
kryksyh
approved these changes
Dec 29, 2025
Member
|
@iv-m thanks! |
wxWidgets 3.2 documentation insists that the bitmap shoud be unselected from DC before using its data, either by selecting wxNullBitmap or by destroying the device context[1]. Failing to do it may lead to various glitches. For example, all the images created in MixerBoard::CreateMuteSoloImages were same on my system -- and same as the first one, mImageMuteUp. Selecting the bitmap every time before drawing, and unselecting it very time after drawing solves the issue for me. [1] https://docs.wxwidgets.org/3.2/classwx_memory_d_c.html#a93d218796ba9359eb4aec2ae46a813e6 Fixes: audacity#9368 Signed-off-by: Ivan A. Melnikov <[email protected]>
kryksyh
force-pushed
the
mixerboard-mute-solo-fix
branch
from
December 29, 2025 10:35
4cd73dd to
9e8b912
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
wxWidgets 3.2 documentation insists that the bitmap shoud be unselected from DC before using its data, either by selecting wxNullBitmap or by destroying the device context[1]. Failing to do it may lead to various glitches. For example, all the images created in MixerBoard::CreateMuteSoloImages were same on my system -- and same as the first one, mImageMuteUp.
Selecting the bitmap every time before drawing, and unselecting it very time after drawing solves the issue for me.
[1] https://docs.wxwidgets.org/3.2/classwx_memory_d_c.html#a93d218796ba9359eb4aec2ae46a813e6
Resolves: #9368
Recommended:
QA: