Menu

#1 Bug in colors RGB computation

open
nobody
None
5
2007-01-14
2007-01-14
glin
No

I found quite significant bug in PyGTKScintilla 1.99.5.

When I use colors for example for colorize text (syntax highlighting), blue part of color is shifted incorrectly, so colors are messed up. For example 'white' (or #FFFFFF) color is displayed as yellow.

I found solution, here is diff of "gens.py" in "script" directory:

561c561
< _%(var_name)s_c = (((((int)((double)_%(var_name)s_py->blue * 255.0
/ 65535.0)) << 8) |
---
> _%(var_name)s_c = (((((int)((double)_%(var_name)s_py->blue * 255.0
/ 65535.0)) << 16) |

This is quite significant - incorrect colors in syntax highlighting widget :)

PS: Another (now just minor) Bug - in README you wrote your email address as:
cavada@isrt.itc.it
but it should be:
cavada@irst.itc.it

Discussion


Log in to post a comment.

MongoDB Logo MongoDB