Divide by 255

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2015-12-21 02:22:05 +01:00
parent 5afde94e3d
commit f240bdb93c

View file

@ -665,9 +665,9 @@ recolor(private_t* priv, zathura_page_t* page, unsigned int page_width,
/* Careful. data color components blue, green, red. */ /* Careful. data color components blue, green, red. */
const double rgb[3] = { const double rgb[3] = {
(double) data[2] / 256., data[2] / 255.,
(double) data[1] / 256., data[1] / 255.,
(double) data[0] / 256. data[0] / 255.
}; };
/* compute h, s, l data */ /* compute h, s, l data */