f-spot r3739 - in trunk: . libeog



Author: sdelcroix
Date: Thu Mar  6 20:50:19 2008
New Revision: 3739
URL: http://svn.gnome.org/viewvc/f-spot?rev=3739&view=rev

Log:
2008-03-06  Stephane Delcroix  <sdelcroix novell com>

	* libeog/image-view.c: use NEAREST interpolation for small images (<20).
	Workaround a bug in gdk-pixbuf, Fixes bgo #406505.


Modified:
   trunk/ChangeLog
   trunk/libeog/image-view.c

Modified: trunk/libeog/image-view.c
==============================================================================
--- trunk/libeog/image-view.c	(original)
+++ trunk/libeog/image-view.c	Thu Mar  6 20:50:19 2008
@@ -782,7 +782,7 @@
 				    d.x1 - d.x0, d.y1 - d.y0,
 				    -(d.x0 - xofs), -(d.y0 - yofs),
 				    priv->zoomx, priv->zoomy,
-				    unity_zoom (priv) ? GDK_INTERP_NEAREST : interp_type,
+				    ABS (d.x1 - d.x0) < 20 || ABS (d.y1 - d.y0) < 20 || unity_zoom (priv) ? GDK_INTERP_NEAREST : interp_type,
 				    255,
 				    d.x0 - xofs, d.y0 - yofs,
 				    check_size,



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