Kaydet (Commit) 63dc6210 authored tarafından Enrico Tröger's avatar Enrico Tröger

Ignore the invert syntax highlighting colours setting when printing to not print…

Ignore the invert syntax highlighting colours setting when printing to not print characters on a dark background (closes #2785244).

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3764 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst d1bcde11
2009-05-02 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/printing.c:
Ignore the invert syntax highlighting colours setting when printing
to not print characters on a dark background (closes #2785244).
2009-04-30 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/callbacks.c, src/callbacks.h, src/main.c:
......
......@@ -117,10 +117,26 @@ static gint get_line_numbers_arity(gint x)
}
/* FIXME use the invert function in highlighting.c */
static guint invert(guint icolour)
{
if (interface_prefs.highlighting_invert_all)
{
guint r, g, b;
r = 0xffffff - icolour;
g = 0xffffff - (icolour >> 8);
b = 0xffffff - (icolour >> 16);
return (r | (g << 8) | (b << 16));
}
return icolour;
}
/* split a RGB colour into the three colour components */
static void get_rgb_values(gint c, gint *r, gint *g, gint *b)
{
c = ROTATE_RGB(c);
c = invert(ROTATE_RGB(c));
*r = c % 256;
*g = (c & - 16711936) / 256;
*b = (c & 0xff0000) / 65536;
......
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