]> Dogcows Code - chaz/openbox/blob - render/mask.c
37e506f3dfe694f959b525a528f8b403dbb0965c
[chaz/openbox] / render / mask.c
1 #include "mask.h"
2 #include "../kernel/openbox.h"
3
4 pixmap_mask *pixmap_mask_new(int w, int h, char *data)
5 {
6 pixmap_mask *m = g_new(pixmap_mask, 1);
7 m->w = w;
8 m->h = h;
9 m->mask = XCreateBitmapFromData(ob_display, ob_root, data, w, h);
10 return m;
11 }
12
13 void pixmap_mask_free(pixmap_mask *m)
14 {
15 XFreePixmap(ob_display, m->mask);
16 g_free(m);
17 }
18
19
20 /* DO YOUR MAGIC MANNY WOOT \m/ */
This page took 0.036072 seconds and 4 git commands to generate.