Update of /cvsroot/ufraw/ufraw
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv4965
Modified Files:
ufraw_preview.c
Log Message:
Fix over/under blinking. Patch by Bruce Guenter.
Index: ufraw_preview.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw_preview.c,v
retrieving revision 1.309
retrieving revision 1.310
diff -u -d -r1.309 -r1.310
--- ufraw_preview.c 21 Nov 2009 22:41:41 -0000 1.309
+++ ufraw_preview.c 23 Nov 2009 16:30:12 -0000 1.310
@@ -698,11 +698,9 @@
&viewRect);
x1 = MAX(x1, viewRect.x);
- x2 = MIN(x2, viewRect.x);
- int width = MAX(x2 - x1, 0);
+ int width = MIN(MAX(x2 - x1, 0), viewRect.width);
y1 = MAX(y1, viewRect.y);
- y2 = MIN(y2, viewRect.y);
- int height = MAX(y2 - y1, 0);
+ int height = MIN(MAX(y2 - y1, 0), viewRect.height);
data->OverUnderTicker++;
preview_draw_area(data, x1, y1, width, height);
------------------------------------------------------------------------------
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