wmix: removed unused variable because a pixmap's mask is not used
The bitmap mask associated to the Led image on the knob was not used, probably because the visual gain is negligible compared to the added complexity to handle it. So, as compiler warned about it, remove the variable. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
This commit is contained in:
parent
2d191d0e6c
commit
8eae1880b9
10
wmix/ui_x.c
10
wmix/ui_x.c
|
@ -531,7 +531,7 @@ static void draw_knob(float volume)
|
||||||
{
|
{
|
||||||
float bearing, led_x, led_y;
|
float bearing, led_x, led_y;
|
||||||
int led_topleft_x, led_topleft_y;
|
int led_topleft_x, led_topleft_y;
|
||||||
Pixmap led_pixmap, led_mask;
|
Pixmap led_pixmap;
|
||||||
|
|
||||||
bearing = (1.25 * PI) - (1.5 * PI) * volume;
|
bearing = (1.25 * PI) - (1.5 * PI) * volume;
|
||||||
|
|
||||||
|
@ -544,13 +544,11 @@ static void draw_knob(float volume)
|
||||||
/* clear previous knob picture */
|
/* clear previous knob picture */
|
||||||
copy_xpm_area(87, 0, 26, 26, 36, 35);
|
copy_xpm_area(87, 0, 26, 26, 36, 35);
|
||||||
|
|
||||||
if (mixer_is_muted()) {
|
if (mixer_is_muted())
|
||||||
led_pixmap = led_off_pixmap;
|
led_pixmap = led_off_pixmap;
|
||||||
led_mask = led_off_mask;
|
else
|
||||||
} else {
|
|
||||||
led_pixmap = led_on_pixmap;
|
led_pixmap = led_on_pixmap;
|
||||||
led_mask = led_on_mask;
|
|
||||||
}
|
|
||||||
XCopyArea(display, led_pixmap, dockapp.pixmap, dockapp.gc,
|
XCopyArea(display, led_pixmap, dockapp.pixmap, dockapp.gc,
|
||||||
0, 0, LED_WIDTH, LED_HEIGHT, led_topleft_x, led_topleft_y);
|
0, 0, LED_WIDTH, LED_HEIGHT, led_topleft_x, led_topleft_y);
|
||||||
draw_percent();
|
draw_percent();
|
||||||
|
|
Loading…
Reference in a new issue