SF.net SVN: geany-plugins:[611] trunk/geanyvc/geanyvc.c
kugel- at users.sourceforge.net
kugel- at xxxxx
Mon Apr 27 16:34:52 UTC 2009
Revision: 611
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=611&view=rev
Author: kugel-
Date: 2009-04-27 16:34:51 +0000 (Mon, 27 Apr 2009)
Log Message:
-----------
Clear the color conversion a bit up here.
Modified Paths:
--------------
trunk/geanyvc/geanyvc.c
Modified: trunk/geanyvc/geanyvc.c
===================================================================
--- trunk/geanyvc/geanyvc.c 2009-04-27 16:04:30 UTC (rev 610)
+++ trunk/geanyvc/geanyvc.c 2009-04-27 16:34:51 UTC (rev 611)
@@ -1204,9 +1204,9 @@
const GeanyLexerStyle *s;
s = highlighting_get_style(GEANY_FILETYPES_DIFF, style);
- c.red = (s->foreground % 256) * 257;
- c.green = s->foreground & -16711936;
- c.blue = (s->foreground & 0xff0000) / 256;
+ c.red = (s->foreground & 0xff) << 0x8;
+ c.green = s->foreground & 0xff00;
+ c.blue = (s->foreground & 0xff0000) >> 0x8;
return &c;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list