On Tue, Oct 06, 2009 at 01:46:02PM +0200, Frank van Maarseveen wrote:
> Changing zoom using the spin button will now recognize the magic
> percentages which can be replaced by a shrink factor. The shrink
> path is notivceable faster than the resize (as it should but I'm
> not entirely sure why).

I think it's a compiler optimization. But this additional patch
helps even more :)

diff --git a/dcraw_api.cc b/dcraw_api.cc
index b8f315f..6b01ae6 100644
--- a/dcraw_api.cc
+++ b/dcraw_api.cc
@@ -404,7 +404,8 @@ int dcraw_image_resize(dcraw_image_data *image, int size)
     int mul=size, div=MAX(image->height, image->width);
 
     if (mul > div) return DCRAW_ERROR;
-    /* I'm skiping the last row/column if it is not a full row/column */
+    if (mul == div) return DCRAW_SUCCESS;
+    /* I'm skipping the last row/column if it is not a full row/column */
     h = image->height * mul / div;
     w = image->width * mul / div;
     wid = image->width;

-- 
Frank

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
ufraw-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-devel

Reply via email to