eel r2161 - in trunk: . eel



Author: cneumair
Date: Sat Sep  6 09:42:33 2008
New Revision: 2161
URL: http://svn.gnome.org/viewvc/eel?rev=2161&view=rev

Log:
2008-09-06  Christian Neumair  <cneumair gnome org>

	* eel/eel-gdk-pixbuf-extensions.c (pixbuf_loader_size_prepared):
	Explicitly cast to float when determining aspect ratio. Fixes #550997.


Modified:
   trunk/ChangeLog
   trunk/eel/eel-gdk-pixbuf-extensions.c

Modified: trunk/eel/eel-gdk-pixbuf-extensions.c
==============================================================================
--- trunk/eel/eel-gdk-pixbuf-extensions.c	(original)
+++ trunk/eel/eel-gdk-pixbuf-extensions.c	Sat Sep  6 09:42:33 2008
@@ -123,7 +123,7 @@
 	desired_size = GPOINTER_TO_INT (desired_size_ptr);
 
 	if (size != desired_size) {
-		scale = desired_size / size;
+		scale = (float) desired_size / size;
 		gdk_pixbuf_loader_set_size (loader,
 					    floor (scale * width + 0.5),
 					    floor (scale * height + 0.5));



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