diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-12-13 05:08:31 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2011-12-13 05:08:31 -0500 |
commit | ac196cb6c00227ef75be008fd7e4723769666a0f (patch) | |
tree | 684af0a9b1178639a08659bbca1206323e30cc1e | |
parent | 7d3be2dd5011b18073c889499e7072dc609310de (diff) |
-rw-r--r-- | pixwrap.c | 15 | ||||
-rw-r--r-- | pixwrap.h | 17 | ||||
-rw-r--r-- | window.c | 3 |
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); + + @@ -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 ( |