From f240bdb93cf2c495ba68c2cc0997692f25f17b50 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 21 Dec 2015 02:22:05 +0100 Subject: [PATCH] Divide by 255 Signed-off-by: Sebastian Ramacher --- zathura/render.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zathura/render.c b/zathura/render.c index cd3be04..7217183 100644 --- a/zathura/render.c +++ b/zathura/render.c @@ -665,9 +665,9 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width, /* Careful. data color components blue, green, red. */ const double rgb[3] = { - (double) data[2] / 256., - (double) data[1] / 256., - (double) data[0] / 256. + data[2] / 255., + data[1] / 255., + data[0] / 255. }; /* compute h, s, l data */