From ec3491280a67ea55d322baf736d538815a4a6087 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 29 May 2013 12:10:40 +0100 Subject: Move NetSurf to CSS colour conversion macro. Make both conversion macros the same. --- desktop/system_colour.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'desktop/system_colour.c') diff --git a/desktop/system_colour.c b/desktop/system_colour.c index 7b4fded38..4ef170981 100644 --- a/desktop/system_colour.c +++ b/desktop/system_colour.c @@ -23,6 +23,7 @@ #include "utils/utils.h" #include "utils/log.h" +#include "css/utils.h" #include "desktop/gui.h" #include "utils/nsoption.h" @@ -82,8 +83,6 @@ colour gui_system_colour_char(const char *name) return ret; } -#define ns_color_to_nscss(c) (((0xff - (((c) >> 24) & 0xff)) << 24) | ((c) & 0xFF00) | (((c) >> 16) & 0xFF) | (((c) & 0xFF) << 16)) - css_error gui_system_colour(void *pw, lwc_string *name, css_color *colour) { unsigned int ccount; -- cgit v1.2.3