Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv7560
Modified Files:
ufraw_preview.c ufraw_ufraw.c
Log Message:
Force triggering of rotation event even if angle did not change during reset.
Add comment explaining the angle sign change in ufraw_flip_image().
Index: ufraw_ufraw.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_ufraw.c,v
retrieving revision 1.192
retrieving revision 1.193
diff -u -d -r1.192 -r1.193
--- ufraw_ufraw.c 3 Oct 2009 06:55:56 -0000 1.192
+++ ufraw_ufraw.c 3 Oct 2009 20:21:46 -0000 1.193
@@ -1460,6 +1460,11 @@
int ufraw_flip_image(ufraw_data *uf, int flip)
{
ufraw_flip_orientation(uf, flip);
+ /* Usually orientation is applied before rotationAngle.
+ * Here we are flipping after rotationAngle was applied.
+ * We need to correct rotationAngle for this since these
+ * operations do no commute.
+ */
if (flip==1 || flip==2 || flip==4 || flip==7) {
uf->conf->rotationAngle = -uf->conf->rotationAngle;
ufraw_normalize_rotation(uf);
Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -d -r1.280 -r1.281
--- ufraw_preview.c 3 Oct 2009 06:55:56 -0000 1.280
+++ ufraw_preview.c 3 Oct 2009 20:21:46 -0000 1.281
@@ -3006,9 +3006,13 @@
(void)user_data;
CFG->orientation = CFG->CameraOrientation;
CFG->rotationAngle = 0;
+
+ data->FreezeDialog++;
ufraw_unnormalize_rotation(data->UF);
gtk_adjustment_set_value(data->RotationAdjustment, CFG->rotationAngle);
ufraw_normalize_rotation(data->UF);
+ data->FreezeDialog--;
+ gtk_adjustment_value_changed(data->RotationAdjustment);
}
GtkWidget *reset_button(const char *tip, GCallback callback, void *data)
------------------------------------------------------------------------------
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