summaryrefslogtreecommitdiffstats
path: root/src/color.h
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2017-06-30 03:58:14 +0000
committerMartin Owens <doctormo@gmail.com>2017-06-30 03:58:14 +0000
commitf55448431e934bf29bb9a983711d204614db7cc7 (patch)
tree52358e8121babdf471b4cb86f1b704275e5865ac /src/color.h
parentMerge branch 'master' of gitlab.com:inkscape/inkscape (diff)
downloadinkscape-f55448431e934bf29bb9a983711d204614db7cc7.tar.gz
inkscape-f55448431e934bf29bb9a983711d204614db7cc7.zip
Hackfest: Refactor cursors so the hot spot is inside the xpm
Diffstat (limited to 'src/color.h')
-rw-r--r--src/color.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/color.h b/src/color.h
index 887daf66b..02a4fc90f 100644
--- a/src/color.h
+++ b/src/color.h
@@ -30,6 +30,7 @@ typedef unsigned int guint32; // uint is guaranteed to hold up to 2^32 − 1
#define SP_RGBA32_A_F(v) SP_COLOR_U_TO_F (SP_RGBA32_A_U (v))
#define SP_RGBA32_U_COMPOSE(r,g,b,a) ((((r) & 0xff) << 24) | (((g) & 0xff) << 16) | (((b) & 0xff) << 8) | ((a) & 0xff))
#define SP_RGBA32_F_COMPOSE(r,g,b,a) SP_RGBA32_U_COMPOSE (SP_COLOR_F_TO_U (r), SP_COLOR_F_TO_U (g), SP_COLOR_F_TO_U (b), SP_COLOR_F_TO_U (a))
+#define SP_RGBA32_C_COMPOSE(c,o) SP_RGBA32_U_COMPOSE(SP_RGBA32_R_U(c),SP_RGBA32_G_U(c),SP_RGBA32_B_U(c),SP_COLOR_F_TO_U(o))
struct SVGICCColor;