diff --git a/src/highlighting.c b/src/highlighting.c index 0154565a..8acdfa45 100644 --- a/src/highlighting.c +++ b/src/highlighting.c @@ -391,7 +391,7 @@ static void get_keyfile_ints(GKeyFile *config, GKeyFile *configh, const gchar *s static guint invert(guint icolour) { if (interface_prefs.highlighting_invert_all) - return utils_invert_color(icolour); + return 0xffffff - icolour; return icolour; } diff --git a/src/utils.c b/src/utils.c index 142de713..cd196cce 100644 --- a/src/utils.c +++ b/src/utils.c @@ -872,18 +872,6 @@ gchar *utils_get_hex_from_color(GdkColor *color) } -guint utils_invert_color(guint color) -{ - guint r, g, b; - - r = 0xffffff - color; - g = 0xffffff - (color >> 8); - b = 0xffffff - (color >> 16); - - return (r | (g << 8) | (b << 16)); -} - - /* Get directory from current file in the notebook. * Returns dir string that should be freed or NULL, depending on whether current file is valid. * Returned string is in UTF-8 encoding */ diff --git a/src/utils.h b/src/utils.h index 09364a47..1ea09ed3 100644 --- a/src/utils.h +++ b/src/utils.h @@ -209,8 +209,6 @@ gchar *utils_get_setting_string(GKeyFile *config, const gchar *section, const gc gchar *utils_get_hex_from_color(GdkColor *color); -guint utils_invert_color(guint color); - const gchar *utils_get_default_dir_utf8(void); gchar *utils_get_current_file_dir_utf8(void);