gtk+ r20840 - trunk/gdk-pixbuf
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r20840 - trunk/gdk-pixbuf
- Date: Tue, 15 Jul 2008 20:35:48 +0000 (UTC)
Author: matthiasc
Date: Tue Jul 15 20:35:48 2008
New Revision: 20840
URL: http://svn.gnome.org/viewvc/gtk+?rev=20840&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:
trunk/gdk-pixbuf/ChangeLog
trunk/gdk-pixbuf/gdk-pixbuf-util.c
Modified: trunk/gdk-pixbuf/gdk-pixbuf-util.c
==============================================================================
--- trunk/gdk-pixbuf/gdk-pixbuf-util.c (original)
+++ trunk/gdk-pixbuf/gdk-pixbuf-util.c Tue Jul 15 20:35:48 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]