summaryrefslogtreecommitdiff
path: root/app/xeyes/EyesP.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-28 09:38:09 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-03-28 09:38:09 +0000
commitc7b0c5e101830720a30fa849e029e0ff0587812c (patch)
treecd6d316ea04fd0a5511c84fca95d8c4da48795bd /app/xeyes/EyesP.h
parent1c787d6c2fd1afe065cff9e207f3eb5e1d761115 (diff)
Update to xeyes 1.1.0
Diffstat (limited to 'app/xeyes/EyesP.h')
-rw-r--r--app/xeyes/EyesP.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/app/xeyes/EyesP.h b/app/xeyes/EyesP.h
index 7dea77a31..3a04b130f 100644
--- a/app/xeyes/EyesP.h
+++ b/app/xeyes/EyesP.h
@@ -7,19 +7,17 @@
#include "Eyes.h"
#include <X11/CoreP.h>
+#ifdef XRENDER
+#include <X11/extensions/Xrender.h>
+#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,12 @@ typedef struct {
Transform maskt;
XtIntervalId interval_id;
Pixmap shape_mask; /* window shape */
+#ifdef XRENDER
+ Boolean render;
+ Picture picture;
+ Picture fill[PART_SHAPE];
+#endif
+ Boolean distance;
} EyesPart;
/* Full instance record declaration */