From: Christophe CURIS <christophe.cu...@free.fr>

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.cu...@free.fr>
---
 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();
-- 
1.9.2


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to