[Github-comments] [geany/geany] Color chooser sometimes inserts a wrong color (#1527)

elextr notifications at xxxxx
Mon Jul 3 01:02:56 UTC 2017


@vfaronov the `utils_scale_round` was probably changed because the first equation does not handle out of range values.

The problem is the use of binary floating point fractions to represent whole numbers with differing resolutions (a GdkColor has 16 bits per component, `#RRGGBB` has only 8), you get rounding errors, even using double.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1527#issuecomment-312528256
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170702/01a0f22f/attachment.html>


More information about the Github-comments mailing list