mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
echomixer - display fix
- Fix a display bug in the vmixer part of the graphic mixer that was introduced recently. Signed-off-by: Giuliano Pochini <pochini@shiny.it>
This commit is contained in:
parent
8d95c04c7e
commit
bac8fe19d3
1 changed files with 4 additions and 2 deletions
|
|
@ -739,8 +739,10 @@ gint DrawMixer(gpointer unused) {
|
||||||
// Draw vmixer elements (Vmixer cards only)
|
// Draw vmixer elements (Vmixer cards only)
|
||||||
if (vmixerId) {
|
if (vmixerId) {
|
||||||
for (o=0; o<GMixerSection.Outputs; o++)
|
for (o=0; o<GMixerSection.Outputs; o++)
|
||||||
for (i=0; i<vmixerControl.vchannels; i++)
|
for (i=0; i<vmixerControl.vchannels; i++) {
|
||||||
DrawBar(o+1, i+GMixerSection.VmixerFirst, VirLevel[i], DONT_DRAW, vmixerControl.mixer[o][i].Gain);
|
dB=Add_dB(vmixerControl.mixer[o][i].Gain, VirLevel[i]);
|
||||||
|
DrawBar(o+1, i+GMixerSection.VmixerFirst, dB, DONT_DRAW, vmixerControl.mixer[o][i].Gain);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_draw(Mixdarea, &update_rect);
|
gtk_widget_draw(Mixdarea, &update_rect);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue