Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/common Modified Files: evas_gradient_linear.c evas_scale_smooth_scaler_up.c Log Message: joses fixes for grads with premul =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_gradient_linear.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- evas_gradient_linear.c 30 Sep 2006 10:18:32 -0000 1.5 +++ evas_gradient_linear.c 5 Oct 2006 05:28:35 -0000 1.6 @@ -384,7 +384,7 @@ #endif #define AXIS_ALIGNED \ - ( ((ayy == 0) || (ayx == 0)) && ((gdata->ca == 0.0) || (gdata->sa = 0.0)) ) + ( ((ayy == 0) || (ayx == 0)) && ((gdata->ca == 0.0) || (gdata->sa == 0.0)) ) #define SETUP_LINEAR_FILL \ if (gdata->at_angle) \ =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_scale_smooth_scaler_up.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- evas_scale_smooth_scaler_up.c 30 Sep 2006 10:18:32 -0000 1.8 +++ evas_scale_smooth_scaler_up.c 5 Oct 2006 05:28:35 -0000 1.9 @@ -41,8 +41,14 @@ else buf = pdst; - dsxx = (((srw == 1) ? (1 << 16) : ((srw - 1) << 16))) / ((drw == 1) ? 1 : (drw - 1)); - dsyy = (((srh == 1) ? (1 << 16) : ((srh - 1) << 16))) / ((drh == 1) ? 1 : (drh - 1)); + if ((srw > 1) && (drw > 1)) + dsxx = ((srw - 1) << 16) / (drw - 1); + else + dsxx = (srw << 16) / drw; + if ((srh > 1) && (drh > 1)) + dsyy = ((srh - 1) << 16) / (drh - 1); + else + dsyy = (srh << 16) / drh; cx = dst_clip_x - drx; cy = dst_clip_y - dry; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs