diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-11-17 23:16:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-11-17 23:16:49 +0000 |
commit | d3b444a4c5b7b997fc8619f0b3b7befb284cb298 (patch) | |
tree | 981d09b6d012f2acb3c2ff65780fa9e1dfe64a32 /gdk/gdkdraw.c | |
parent | eda4f1134f86b271d8b042574df84a95937d4323 (diff) | |
download | gdk-pixbuf-d3b444a4c5b7b997fc8619f0b3b7befb284cb298.tar.gz |
Fix for #119555, Peter Zelesny:
Tue Nov 18 00:12:55 2003 Matthias Clasen <maclas@gmx.de>
Fix for #119555, Peter Zelesny:
* gdk/gdkdrawable.h: Declare gdk_drawable_copy_to_image.
* gdk/gdkdraw.c (gdk_drawable_copy_to_image): Make public
by removing the _ prefix.
* gdk/gdkdraw.c, gdk/gdkpixbuf-drawable.c, gdk/gdkpixmap.c,
gdk/gdkwindow.c: Adjust all callers.
Diffstat (limited to 'gdk/gdkdraw.c')
-rw-r--r-- | gdk/gdkdraw.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/gdk/gdkdraw.c b/gdk/gdkdraw.c index ae8bb124f..1abb3e9b3 100644 --- a/gdk/gdkdraw.c +++ b/gdk/gdkdraw.c @@ -897,7 +897,7 @@ gdk_draw_glyphs (GdkDrawable *drawable, /** - * _gdk_drawable_copy_to_image: + * gdk_drawable_copy_to_image: * @drawable: a #GdkDrawable * @image: a #GdkDrawable, or %NULL if a new @image should be created. * @src_x: x coordinate on @drawable @@ -912,17 +912,19 @@ gdk_draw_glyphs (GdkDrawable *drawable, * and copies into that. See gdk_drawable_get_image() for further details. * * Return value: @image, or a new a #GdkImage containing the contents - of @drawable + * of @drawable + * + * Since: 2.4 **/ GdkImage* -_gdk_drawable_copy_to_image (GdkDrawable *drawable, - GdkImage *image, - gint src_x, - gint src_y, - gint dest_x, - gint dest_y, - gint width, - gint height) +gdk_drawable_copy_to_image (GdkDrawable *drawable, + GdkImage *image, + gint src_x, + gint src_y, + gint dest_x, + gint dest_y, + gint width, + gint height) { GdkDrawable *composite; gint composite_x_offset = 0; @@ -1065,7 +1067,7 @@ gdk_drawable_real_get_image (GdkDrawable *drawable, gint width, gint height) { - return _gdk_drawable_copy_to_image (drawable, NULL, x, y, 0, 0, width, height); + return gdk_drawable_copy_to_image (drawable, NULL, x, y, 0, 0, width, height); } static GdkDrawable* @@ -1457,10 +1459,10 @@ gdk_drawable_real_draw_pixbuf (GdkDrawable *drawable, width1, height1, gdk_drawable_get_depth (drawable), &xs0, &ys0); - _gdk_drawable_copy_to_image (drawable, image, - dest_x + x0, dest_y + y0, - xs0, ys0, - width1, height1); + gdk_drawable_copy_to_image (drawable, image, + dest_x + x0, dest_y + y0, + xs0, ys0, + width1, height1); (*composite_func) (pixbuf->pixels + (src_y + y0) * pixbuf->rowstride + (src_x + x0) * 4, pixbuf->rowstride, (guchar*)image->mem + ys0 * image->bpl + xs0 * image->bpp, |