Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv11889
Modified Files:
ufraw_ufraw.c
Log Message:
Fix --size when size is between 50% and 100% of original size.
Index: ufraw_ufraw.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -d -r1.180 -r1.181
--- ufraw_ufraw.c 18 Sep 2009 18:39:18 -0000 1.180
+++ ufraw_ufraw.c 18 Sep 2009 23:13:47 -0000 1.181
@@ -709,13 +709,13 @@
int temp_height, temp_width;
// This code is copied from dcraw_image_dimensions().
if (raw->pixel_aspect < 1)
- temp_height = (int)(raw->height / raw->pixel_aspect + 0.5);
+ temp_height = (int)(raw->raw.height / raw->pixel_aspect + 0.5);
else
- temp_height = raw->height;
+ temp_height = raw->raw.height;
if (raw->pixel_aspect > 1)
- temp_width = (int)(raw->width * raw->pixel_aspect + 0.5);
+ temp_width = (int)(raw->raw.width * raw->pixel_aspect + 0.5);
else
- temp_width = raw->width;
+ temp_width = raw->raw.width;
/* We can do a simple interpolation in the following cases:
* We shrink by an integer value.
------------------------------------------------------------------------------
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-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs