[geany/geany] 69f1cc: Remove useless rotate_rgb()
Colomban Wendling
git-noreply at xxxxx
Wed Dec 4 14:49:47 UTC 2013
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Wed, 04 Dec 2013 14:49:47 UTC
Commit: 69f1cc7136dcb44bba21c9d6a4a54c2c7219f27f
https://github.com/geany/geany/commit/69f1cc7136dcb44bba21c9d6a4a54c2c7219f27f
Log Message:
-----------
Remove useless rotate_rgb()
Modified Paths:
--------------
src/highlighting.c
Modified: src/highlighting.c
11 files changed, 1 insertions(+), 10 deletions(-)
===================================================================
@@ -319,15 +319,6 @@ static void get_keyfile_style(GKeyFile *config, GKeyFile *configh,
}
-/* Convert 0xRRGGBB to 0xBBGGRR, which scintilla expects. */
-static gint rotate_rgb(gint color)
-{
- return ((color & 0xFF0000) >> 16) +
- (color & 0x00FF00) +
- ((color & 0x0000FF) << 16);
-}
-
-
static void convert_int(const gchar *int_str, gint *val)
{
gchar *end;
@@ -671,7 +662,7 @@ static void styleset_common(ScintillaObject *sci, guint ft_id)
/* Error indicator */
SSM(sci, SCI_INDICSETSTYLE, GEANY_INDICATOR_ERROR, INDIC_SQUIGGLEPIXMAP);
- SSM(sci, SCI_INDICSETFORE, GEANY_INDICATOR_ERROR, invert(rotate_rgb(0xff0000)));
+ SSM(sci, SCI_INDICSETFORE, GEANY_INDICATOR_ERROR, invert(0x0000FF /* red, in BGR */));
/* Search indicator, used for 'Mark' matches */
SSM(sci, SCI_INDICSETSTYLE, GEANY_INDICATOR_SEARCH, INDIC_ROUNDBOX);
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list