From 8eae1880b9bb5b4b109490d824d2d79e38af60bd Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sat, 7 Jun 2014 21:21:43 +0200 Subject: [PATCH] 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 --- wmix/ui_x.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/wmix/ui_x.c b/wmix/ui_x.c index 3d64329..2b993bf 100644 --- a/wmix/ui_x.c +++ b/wmix/ui_x.c @@ -531,7 +531,7 @@ static void draw_knob(float volume) { float bearing, led_x, led_y; int led_topleft_x, led_topleft_y; - Pixmap led_pixmap, led_mask; + Pixmap led_pixmap; bearing = (1.25 * PI) - (1.5 * PI) * volume; @@ -544,13 +544,11 @@ static void draw_knob(float volume) /* clear previous knob picture */ copy_xpm_area(87, 0, 26, 26, 36, 35); - if (mixer_is_muted()) { + if (mixer_is_muted()) led_pixmap = led_off_pixmap; - led_mask = led_off_mask; - } else { + else led_pixmap = led_on_pixmap; - led_mask = led_on_mask; - } + XCopyArea(display, led_pixmap, dockapp.pixmap, dockapp.gc, 0, 0, LED_WIDTH, LED_HEIGHT, led_topleft_x, led_topleft_y); draw_percent();