diff options
author | Dylan Simon <dylan@dylex.net> | 2009-09-27 14:44:35 -0400 |
---|---|---|
committer | James Cloos <cloos@jhcloos.com> | 2009-09-27 14:44:35 -0400 |
commit | 5e825a140f4022b88dd7a1a20a9a01b653f1a95c (patch) | |
tree | 36a25fc8b364053ea0c126013eabaa7cb69075b8 /xeyes.c | |
parent | dbb8401026c421d64a2962e6ac6eb900f6dc141e (diff) |
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 <dylan@dylex.net>
Signed-off-by: James Cloos <cloos@jhcloos.com>
Diffstat (limited to 'xeyes.c')
-rw-r--r-- | xeyes.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -30,6 +30,10 @@ from the X Consortium. */ /* $XFree86: xc/programs/xeyes/xeyes.c,v 1.3 2000/02/17 14:00:35 dawes Exp $ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include <X11/Intrinsic.h> #include <X11/StringDefs.h> #include <X11/Shell.h> @@ -54,6 +58,10 @@ usage(void) fprintf(stderr, "\n"); fprintf(stderr, " [-outline {color}] [-center {color}] [-backing {backing-store}]\n"); +#ifdef XRENDER + fprintf(stderr, +" [-render | +render]\n"); +#endif exit(1); } @@ -66,6 +74,10 @@ static XrmOptionDescRec options[] = { {"-backing", "*eyes.backingStore", XrmoptionSepArg, NULL}, {"-shape", "*eyes.shapeWindow", XrmoptionNoArg, "TRUE"}, {"+shape", "*eyes.shapeWindow", XrmoptionNoArg, "FALSE"}, +#ifdef XRENDER +{"-render", "*eyes.render", XrmoptionNoArg, "TRUE"}, +{"+render", "*eyes.render", XrmoptionNoArg, "FALSE"}, +#endif }; static Atom wm_delete_window; |