Commit f240bdb9 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Divide by 255

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent 5afde94e
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment