gtk+ r21369 - branches/gtk-2-12/gdk-pixbuf



Author: matthiasc
Date: Fri Sep 12 04:26:04 2008
New Revision: 21369
URL: http://svn.gnome.org/viewvc/gtk+?rev=21369&view=rev

Log:
  * gdk-pixbuf-utils.c (gdk_pixbuf_saturate_and_pixelate):
        Use gdk_pixbuf_copy_area() to copy between pixbufs.
        Reported by Andrey Tsyvarev




Modified:
   branches/gtk-2-12/gdk-pixbuf/ChangeLog
   branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-util.c

Modified: branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-util.c
==============================================================================
--- branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-util.c	(original)
+++ branches/gtk-2-12/gdk-pixbuf/gdk-pixbuf-util.c	Fri Sep 12 04:26:04 2008
@@ -190,9 +190,10 @@
   
         if (saturation == 1.0 && !pixelate) {
                 if (dest != src)
-                        memcpy (gdk_pixbuf_get_pixels (dest),
-                                gdk_pixbuf_get_pixels (src),
-                                gdk_pixbuf_get_height (src) * gdk_pixbuf_get_rowstride (src));
+                        gdk_pixbuf_copy_area (src, 0, 0, 
+                                              gdk_pixbuf_get_width (src),
+                                              gdk_pixbuf_get_height (src),
+                                              dest, 0, 0);
         } else {
                 int i, j, t;
                 int width, height, has_alpha, src_rowstride, dest_rowstride, bytes_per_pixel;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]