summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdk/gdkcairo.c4
-rw-r--r--gdk/gdkinternals.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index f1cc3c486a..0846203382 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 5b2193c891..a05193a088 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);