mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 08:36:01 +01:00
Divide by 255
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
5afde94e3d
commit
f240bdb93c
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue