[cairo] [PATCH 17/39] [OpenVG] Modified component order for buffers in component shuffle.

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:19 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index 162425d..9bcf6bb 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -436,15 +436,15 @@ _cairo_openvg_setup_surface_source (cairo_openvg_surface_t  *vgsurface,
     int i;
     for (i=0; i<image->width * image->height; i++)
       {
-        data[4*i+0] = image->data[4*i+3];
-        data[4*i+1] = image->data[4*i+0];
-        data[4*i+2] = image->data[4*i+1];
-        data[4*i+3] = image->data[4*i+2];
+        data[4*i+0] = image->data[4*i+2];
+        data[4*i+1] = image->data[4*i+1];
+        data[4*i+2] = image->data[4*i+0];
+        data[4*i+3] = image->data[4*i+3];
       }
   }
 
   vgImageSubData (vgsurface->source_image, data, image->width*4,
-     VG_sRGBA_8888 | (0 << 6), 0, 0, image->width, image->height);
+     VG_sRGBA_8888, 0, 0, image->width, image->height);
 
   free (data);
 
-- 
1.6.0.4



More information about the cairo mailing list