aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-25 01:10:41 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-01-25 01:11:33 +0100
commit96935f2682fd4f85c63ce29019640a1345340110 (patch)
tree2cdd9dedcc549333888e3e27568d3545adf602a0
parent55ac868898df8acc790dcd2ec56e294e89df5ea1 (diff)
Fix colors off by one
-rw-r--r--swaybar/render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index bac44075..369fa046 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -17,10 +17,10 @@ static int ws_spacing = 1;
static void cairo_set_source_u32(cairo_t *cairo, uint32_t color) {
cairo_set_source_rgba(cairo,
- ((color & 0xFF000000) >> 24) / 256.0,
- ((color & 0xFF0000) >> 16) / 256.0,
- ((color & 0xFF00) >> 8) / 256.0,
- (color & 0xFF) / 256.0);
+ ((color & 0xFF000000) >> 24) / 255.0,
+ ((color & 0xFF0000) >> 16) / 255.0,
+ ((color & 0xFF00) >> 8) / 255.0,
+ (color & 0xFF) / 255.0);
}
/**