Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21509
Modified Files:
ufraw_preview.c
Log Message:
Update alignment line drawing in preview.
Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.264
retrieving revision 1.265
diff -u -d -r1.264 -r1.265
--- ufraw_preview.c 1 Sep 2009 15:08:07 -0000 1.264
+++ ufraw_preview.c 10 Sep 2009 23:07:25 -0000 1.265
@@ -1990,6 +1990,9 @@
data->DrawnCropY2 = CropY2;
i++;
}
+ // It is better not to draw lines than to draw partial lines:
+ int saveDrawLines = CFG->drawLines;
+ CFG->drawLines = 0;
for (i--; i>=0; i--) {
x1[i] = MAX (x1[i] - 1, 0);
x2[i] = MIN (x2[i] + 1, pixbufWidth);
@@ -1997,6 +2000,11 @@
y2[i] = MIN (y2[i] + 1, pixbufHeight);
preview_draw_area (data, x1[i], y1[i], x2[i]-x1[i], y2[i]-y1[i]);
}
+ CFG->drawLines = saveDrawLines;
+ // Draw lines when idle if necessary
+ if (CFG->drawLines>0 && data->BlinkTimer==0)
+ g_idle_add_full(G_PRIORITY_DEFAULT_IDLE+30,
+ (GSourceFunc)(switch_highlights), data, NULL);
update_shrink_ranges(data);
redraw_navigation_image(data);
}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
ufraw-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs