Skip to content

Fix MixerBoard Mute and Solo buttons display - #10099

Merged
kryksyh merged 1 commit into
audacity:audacity3from
iv-m:mixerboard-mute-solo-fix
Dec 29, 2025
Merged

kryksyh merged 1 commit into
audacity:audacity3from
iv-m:mixerboard-mute-solo-fix

Conversation

@iv-m

@iv-m iv-m commented Dec 19, 2025 •

Copy link
Copy Markdown
Contributor

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

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Autobot test cases have been run

@iv-m
iv-m marked this pull request as ready for review December 19, 2025 19:30
@ferdnyc

ferdnyc commented Dec 22, 2025

Copy link
Copy Markdown

Fixes #9368, in my testing. (And I'm the reporter, soooo...)

@kryksyh

kryksyh commented Dec 29, 2025

Copy link
Copy Markdown
Member

@iv-m thanks!

@kryksyh kryksyh self-assigned this Dec 29, 2025
@github-project-automation github-project-automation Bot moved this to Ready for QA in [AU3] Main board Dec 29, 2025
@kryksyh kryksyh linked an issue Dec 29, 2025 that may be closed by this pull request
@dozzzzer dozzzzer moved this from Ready for QA to In QA in [AU3] Main board Dec 29, 2025
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
kryksyh force-pushed the mixerboard-mute-solo-fix branch from 4cd73dd to 9e8b912 Compare December 29, 2025 10:35
@kryksyh
kryksyh merged commit 427c476 into audacity:audacity3 Dec 29, 2025
@kryksyh kryksyh added this to the Audacity 3.7.8 milestone Apr 22, 2026
@github-project-automation github-project-automation Bot moved this from To-Do to Done in [AU3] Main board Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Solo" button mislabeled "Mute" in Mixer view

3 participants