]> git.sur5r.net Git - i3/i3lock/commitdiff
Change input slices to be exactly pi/3 in size instead of slightly more (#107)
authorBownairo <eerokelly@gmail.com>
Tue, 10 Jan 2017 08:01:19 +0000 (03:01 -0500)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Tue, 10 Jan 2017 08:01:19 +0000 (09:01 +0100)
unlock_indicator.c

index 1483230b5b8ae0d9bbc5710141b2d9cd6faba788..ddad9579fca0950899a6015f709d2bc7d8a382f2 100644 (file)
@@ -296,8 +296,8 @@ xcb_pixmap_t draw_image(uint32_t *resolution) {
                       BUTTON_CENTER /* x */,
                       BUTTON_CENTER /* y */,
                       BUTTON_RADIUS /* radius */,
-                      highlight_start + (M_PI / 3.0) /* start */,
-                      (highlight_start + (M_PI / 3.0)) + (M_PI / 128.0) /* end */);
+                      (highlight_start + (M_PI / 3.0)) - (M_PI / 128.0) /* start */,
+                      highlight_start + (M_PI / 3.0) /* end */);
             cairo_stroke(ctx);
         }
     }