From 5e825a140f4022b88dd7a1a20a9a01b653f1a95c Mon Sep 17 00:00:00 2001 From: Dylan Simon Date: Sun, 27 Sep 2009 14:44:35 -0400 Subject: Add xrender support Optionally draw all components (except shape) with xrender. Enabled by default. Xlib rendering can be restored by "configure --without-xrender" or "xeyes +render". Signed-off-by: Dylan Simon Signed-off-by: James Cloos --- EyesP.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'EyesP.h') diff --git a/EyesP.h b/EyesP.h index 7dea77a..1cffdb4 100644 --- a/EyesP.h +++ b/EyesP.h @@ -7,19 +7,17 @@ #include "Eyes.h" #include +#ifdef XRENDER +#include +#endif #include "transform.h" #define SEG_BUFF_SIZE 128 /* New fields for the eyes widget instance record */ typedef struct { - Pixel puppixel; /* foreground pixel */ - Pixel outline; /* outline pixel */ - Pixel center; /* inside pixel */ - GC outGC; /* pointer to GraphicsContext */ - GC pupGC; /* pointer to GraphicsContext */ - GC centerGC; /* pointer to GraphicsContext */ - GC shapeGC; /* pointer to GraphicsContext */ + Pixel pixel[PART_SHAPE]; + GC gc[PART_MAX]; /* start of graph stuff */ int backing_store; /* backing store variety */ Boolean reverse_video; /* swap fg and bg pixels */ @@ -31,6 +29,11 @@ typedef struct { Transform maskt; XtIntervalId interval_id; Pixmap shape_mask; /* window shape */ +#ifdef XRENDER + Boolean render; + Picture picture; + Picture fill[PART_SHAPE]; +#endif } EyesPart; /* Full instance record declaration */ -- cgit v1.2.3