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



commit 8b7261df40bf65a334edf73faaaca3b668e7b2b0
Author: Benjamin Otte <[email protected]>
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);
_______________________________________________
commits-list mailing list (read only)
https://mail.gnome.org/mailman/listinfo/commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.



Programming list archiving by: Enterprise Git Hosting