summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2011-12-13 05:08:31 -0500
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-12-13 05:08:31 -0500
commitac196cb6c00227ef75be008fd7e4723769666a0f (patch)
tree684af0a9b1178639a08659bbca1206323e30cc1e
parent7d3be2dd5011b18073c889499e7072dc609310de (diff)
pixwrapHEADmaster
-rw-r--r--pixwrap.c15
-rw-r--r--pixwrap.h17
-rw-r--r--window.c3
3 files changed, 32 insertions, 3 deletions
diff --git a/pixwrap.c b/pixwrap.c
new file mode 100644
index 0000000..ad76253
--- /dev/null
+++ b/pixwrap.c
@@ -0,0 +1,15 @@
+struct pix_context_t
+{
+ /* Destination */
+ pixman_format_code_t dst_format;
+ int dst_width;
+ int dst_height;
+ int dst_stride;
+ uint32_t * dst_bits;
+
+ /* Src */
+ pix_image_t * src;
+
+ /* Mask */
+ pix_image_t * mask;
+};
diff --git a/pixwrap.h b/pixwrap.h
new file mode 100644
index 0000000..965776d
--- /dev/null
+++ b/pixwrap.h
@@ -0,0 +1,17 @@
+#include <pixman.h>
+
+typedef struct pix_context_t pix_context_t;
+
+struct
+{
+
+} pix_image_t *image;
+
+typedef enum
+{
+ PIX_DEST
+} pix_register_t;
+
+pix_context_t *pix_context_create (void);
+
+
diff --git a/window.c b/window.c
index 6ac821c..f53d74a 100644
--- a/window.c
+++ b/window.c
@@ -330,9 +330,6 @@ update_local_geometry (window_t *window, int x, int y, int width, int height)
if (width != old_width || height != old_height)
{
- /* We should never see this color.
- * FIXME: we do see this color
- */
pixman_color_t ugly = { 0x0000, 0xffff, 0xffff, 0xffff };
pixman_image_t *new_backing =
pixman_image_create_bits (