From df18a971435c35963bb8ea94efc0d5326ad66ff0 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 30 Dec 2011 00:58:35 +0000 Subject: Change GTK plotting to use cairo surfaces throughout svn path=/trunk/netsurf/; revision=13354 --- desktop/plot_style.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'desktop') diff --git a/desktop/plot_style.h b/desktop/plot_style.h index e6229e256..057e40fa6 100644 --- a/desktop/plot_style.h +++ b/desktop/plot_style.h @@ -64,10 +64,15 @@ (((((c0 >> 8) & 0xff) + ((c1 >> 8) & 0xff)) >> 1) << 8) | \ ((((c0 & 0xff) + (c1 & 0xff)) >> 1) << 0) +/* get a bitmap pixel (image/bitmap.h) into a plot colour */ +#define pixel_to_colour(b) \ + b[0] | (b[1] << 8) | (b[2] << 16) | (b[3] << 24) + /** * Colour type: XBGR */ typedef uint32_t colour; + /** * Magical transparent value */ -- cgit v1.2.3