Author: akv
Date: 2010-12-29 21:08:32 +0100 (Wed, 29 Dec 2010)
New Revision: 3719
Modified:
trunk/src/rs-store.c
Log:
Cropping thumbnails to save space.
Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c 2010-12-29 19:29:54 UTC (rev 3718)
+++ trunk/src/rs-store.c 2010-12-29 20:08:32 UTC (rev 3719)
@@ -2647,9 +2647,12 @@
cairo_destroy(cr);
GdkPixbuf *pixbuf = cairo_convert_to_pixbuf(surface2);
+ GdkPixbuf *pixbuf_cropped = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8,
width+shadow*5, height+shadow*5);
+ gdk_pixbuf_copy_area(pixbuf, shadow, shadow, width+shadow*5,
height+shadow*5, pixbuf_cropped, 0, 0);
cairo_surface_destroy(surface2);
+ g_object_unref(pixbuf);
- return pixbuf;
+ return pixbuf_cropped;
}
void
_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit