diff options
-rw-r--r-- | xbacklight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbacklight.c b/xbacklight.c index 278043f..1d6d987 100644 --- a/xbacklight.c +++ b/xbacklight.c @@ -328,7 +328,7 @@ main (int argc, char **argv) cur = new; else cur += step; - backlight_set (conn, output, (long) cur); + backlight_set (conn, output, (long) (cur + 0.5)); xcb_flush (conn); usleep (total_time * 1000 / steps); } |