add a struct for pixmap masks
Dana Jansens danakj@orodu.net
3 files changed,
14 insertions(+),
0 deletions(-)
A
render/mask.h
@@ -0,0 +1,9 @@
+#ifndef __mask_h +#define __mask_h + +typedef struct { + Pixmap mask; + guint w, h; +} pixmap_mask; + +#endif
M
render/render.h
→
render/render.h
@@ -6,6 +6,7 @@ #define _XFT_NO_COMPAT_ /* no Xft 1 API */
#include <X11/Xft/Xft.h> #include <glib.h> #include "color.h" +#include "mask.h" #ifdef HAVE_STDINT_H # include <stdint.h>@@ -112,6 +113,7 @@ } TextureText;
typedef struct TextureMask { color_rgb *color; + pixmap_mask *mask; } TextureMask; typedef struct TextureRGBA {