summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf-drawable.c
diff options
context:
space:
mode:
authorCody Russell <bratsche@src.gnome.org>1999-10-07 18:20:16 +0000
committerCody Russell <bratsche@src.gnome.org>1999-10-07 18:20:16 +0000
commitc512d3864cc3c71b68ed9b9f6c6d74bffb5b6771 (patch)
tree405a4f55629d2236e05527d61c8700657acad8bc /gdk/gdkpixbuf-drawable.c
parent2453bc3cca4a353f6388efc2294a94ee78bcff31 (diff)
downloadgdk-pixbuf-c512d3864cc3c71b68ed9b9f6c6d74bffb5b6771.tar.gz
Changed the functions to return GdkPixBuf* instead of ArtPixBuf*.
Diffstat (limited to 'gdk/gdkpixbuf-drawable.c')
-rw-r--r--gdk/gdkpixbuf-drawable.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index a8cc75b44..396976330 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -14,8 +14,8 @@
/* private function */
-static ArtPixBuf *
-art_pixbuf_from_drawable_core (GdkWindow *window,
+static GdkPixBuf *
+gdk_pixbuf_from_drawable_core (GdkWindow *window,
gint x, gint y,
gint width, gint height,
gint with_alpha)
@@ -113,24 +113,26 @@ art_pixbuf_from_drawable_core (GdkWindow *window,
g_error ("art_pixbuf_from_drawable_core (): Unknown depth.");
}
- return with_alpha ? art_pixbuf_new_rgba (buff, width, height, rowstride) :
+ art_pixbuf = with_alpha ? art_pixbuf_new_rgba (buff, width, height, rowstride) :
art_pixbuf_new_rgb (buff, width, height, rowstride);
+
+ return gdk_pixbuf_new(art_pixbuf, NULL);
}
/* Public functions */
-ArtPixBuf *
-art_pixbuf_rgb_from_drawable (GdkWindow *window,
+GdkPixBuf *
+gdk_pixbuf_rgb_from_drawable (GdkWindow *window,
gint x, gint y,
gint width, gint height)
{
- return art_pixbuf_from_drawable_core (window, x, y, width, height, 0);
+ return gdk_pixbuf_from_drawable_core (window, x, y, width, height, 0);
}
-ArtPixBuf *
-art_pixbuf_rgba_from_drawable (GdkWindow *window,
+GdkPixBuf *
+gdk_pixbuf_rgba_from_drawable (GdkWindow *window,
gint x, gint y,
gint width, gint height)
{
- return art_pixbuf_from_drawable_core (window, x, y, width, height, 1);
+ return gdk_pixbuf_from_drawable_core (window, x, y, width, height, 1);
}