[gtk+/wip/otte/rendernode: 28/29] gdk: Export gdk_cairo_surface_paint_pixbuf() into private header



commit 8b7261df40bf65a334edf73faaaca3b668e7b2b0
Author: Benjamin Otte <otte redhat com>
Date:   Wed Dec 21 22:11:25 2016 +0100

    gdk: Export gdk_cairo_surface_paint_pixbuf() into private header

 gdk/gdkcairo.c     |    4 +++-
 gdk/gdkinternals.h |    3 +++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index f1cc3c4..0846203 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -151,7 +151,7 @@ gdk_cairo_region (cairo_t              *cr,
     }
 }
 
-static void
+void
 gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
                                 const GdkPixbuf *pixbuf)
 {
@@ -198,7 +198,9 @@ gdk_cairo_surface_paint_pixbuf (cairo_surface_t *surface,
               q[0] = p[2];
               q[1] = p[1];
               q[2] = p[0];
+              q[3] = 0xFF;
 #else
+              q[0] = 0xFF;
               q[1] = p[0];
               q[2] = p[1];
               q[3] = p[2];
diff --git a/gdk/gdkinternals.h b/gdk/gdkinternals.h
index 5b2193c..a05193a 100644
--- a/gdk/gdkinternals.h
+++ b/gdk/gdkinternals.h
@@ -343,6 +343,9 @@ void           gdk_gl_texture_quads               (GdkGLContext *paint_context,
                                                    GdkTexturedQuad *quads,
                                                    gboolean flip_colors);
 
+void            gdk_cairo_surface_paint_pixbuf   (cairo_surface_t *surface,
+                                                  const GdkPixbuf *pixbuf);
+
 void            gdk_cairo_surface_mark_as_direct (cairo_surface_t *surface,
                                                   GdkWindow       *window);
 cairo_region_t *gdk_cairo_region_from_clip       (cairo_t         *cr);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]