diff options
author | Benjamin Otte <otte@redhat.com> | 2010-07-13 23:28:20 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-08-10 21:02:26 +0200 |
commit | 6f5084551a771120eefae91b8a514e237ff4d278 (patch) | |
tree | eb8efb3252433a038767cb792103647d0303f97c /gdk/win32 | |
parent | 2a72ffd4de67fe60dd4ebd7aa86599f496492f9e (diff) | |
download | gtk+-6f5084551a771120eefae91b8a514e237ff4d278.tar.gz |
API: remove gdk_drawable_copy_to_image()
Diffstat (limited to 'gdk/win32')
-rw-r--r-- | gdk/win32/gdkdrawable-win32.c | 2 | ||||
-rw-r--r-- | gdk/win32/gdkimage-win32.c | 33 | ||||
-rw-r--r-- | gdk/win32/gdkprivate-win32.h | 9 |
3 files changed, 0 insertions, 44 deletions
diff --git a/gdk/win32/gdkdrawable-win32.c b/gdk/win32/gdkdrawable-win32.c index 80ecb49f43..b93432eb19 100644 --- a/gdk/win32/gdkdrawable-win32.c +++ b/gdk/win32/gdkdrawable-win32.c @@ -137,8 +137,6 @@ _gdk_drawable_impl_win32_class_init (GdkDrawableImplWin32Class *klass) drawable_class->get_depth = gdk_win32_get_depth; drawable_class->get_screen = gdk_win32_get_screen; drawable_class->get_visual = gdk_win32_get_visual; - - drawable_class->_copy_to_image = _gdk_win32_copy_to_image; } static void diff --git a/gdk/win32/gdkimage-win32.c b/gdk/win32/gdkimage-win32.c index de54884f36..bcc336349e 100644 --- a/gdk/win32/gdkimage-win32.c +++ b/gdk/win32/gdkimage-win32.c @@ -203,39 +203,6 @@ _gdk_image_new_for_depth (GdkScreen *screen, return image; } -GdkImage* -_gdk_win32_copy_to_image (GdkDrawable *drawable, - GdkImage *image, - gint src_x, - gint src_y, - gint dest_x, - gint dest_y, - gint width, - gint height) -{ - GdkGC *gc; - GdkScreen *screen = gdk_drawable_get_screen (drawable); - - g_return_val_if_fail (GDK_IS_DRAWABLE_IMPL_WIN32 (drawable), NULL); - g_return_val_if_fail (image != NULL || (dest_x == 0 && dest_y == 0), NULL); - - GDK_NOTE (IMAGE, g_print ("_gdk_win32_copy_to_image: %p\n", - GDK_DRAWABLE_HANDLE (drawable))); - - if (!image) - image = _gdk_image_new_for_depth (screen, GDK_IMAGE_FASTEST, NULL, width, height, - gdk_drawable_get_depth (drawable)); - - gc = gdk_gc_new ((GdkDrawable *) image->windowing_data); - _gdk_win32_blit - (FALSE, - GDK_DRAWABLE_IMPL_WIN32 (GDK_PIXMAP_OBJECT (image->windowing_data)->impl), - gc, drawable, src_x, src_y, dest_x, dest_y, width, height); - g_object_unref (gc); - - return image; -} - guint32 gdk_image_get_pixel (GdkImage *image, gint x, diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h index 0945d6e20f..043952220e 100644 --- a/gdk/win32/gdkprivate-win32.h +++ b/gdk/win32/gdkprivate-win32.h @@ -242,15 +242,6 @@ GdkImage *_gdk_win32_get_image (GdkDrawable *drawable, gint width, gint height); -GdkImage *_gdk_win32_copy_to_image (GdkDrawable *drawable, - GdkImage *image, - gint src_x, - gint src_y, - gint dest_x, - gint dest_y, - gint width, - gint height); - void _gdk_win32_blit (gboolean use_fg_bg, GdkDrawableImplWin32 *drawable, GdkGC *gc, |