From: Jeff R. <jef...@us...> - 2005-11-20 20:42:33
|
Update of /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi/Paint In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1906/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi/Paint Modified Files: GradientPaintServer.cs Log Message: Project wide fixes to eliminate obsolete NUnit calls, minor test related fixes Index: GradientPaintServer.cs =================================================================== RCS file: /cvsroot/svgdomcsharp/SharpVectorGraphics/src/SharpVectorRenderingEngine/SharpVectors/Renderer/Gdi/Paint/GradientPaintServer.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- GradientPaintServer.cs 11 Sep 2005 18:26:09 -0000 1.5 +++ GradientPaintServer.cs 20 Nov 2005 20:42:23 -0000 1.6 @@ -114,9 +114,9 @@ float fEffectiveTop = fTop; float fEffectiveBottom = fBottom; - if(res.GradientUnits.AnimVal.Equals(SvgUnitType.ObjectBoundingBox) && !bForceUserSpaceOnUse) + if(res.GradientUnits.AnimVal.Equals((ushort)SvgUnitType.ObjectBoundingBox) && !bForceUserSpaceOnUse) { - if(res.SpreadMethod.AnimVal.Equals(SvgSpreadMethod.Pad)) + if(res.SpreadMethod.AnimVal.Equals((ushort)SvgSpreadMethod.Pad)) { fEffectiveRight = bounds.Right; fEffectiveLeft = bounds.Left; @@ -169,9 +169,9 @@ float[] adjpositions = null; getColorsAndPositions(stops, ref adjpositions, ref adjcolors); - if(res.GradientUnits.AnimVal.Equals(SvgUnitType.ObjectBoundingBox) && !bForceUserSpaceOnUse) + if(res.GradientUnits.AnimVal.Equals((ushort)SvgUnitType.ObjectBoundingBox) && !bForceUserSpaceOnUse) { - if(res.SpreadMethod.AnimVal.Equals(SvgSpreadMethod.Pad)) + if(res.SpreadMethod.AnimVal.Equals((ushort)SvgSpreadMethod.Pad)) { for(int i=0;i<adjpositions.Length;i++) { @@ -229,15 +229,15 @@ brush.InterpolationColors = cb; - if(res.SpreadMethod.AnimVal.Equals(SvgSpreadMethod.Reflect)) + if(res.SpreadMethod.AnimVal.Equals((ushort)SvgSpreadMethod.Reflect)) { brush.WrapMode = WrapMode.TileFlipXY; } - else if(res.SpreadMethod.AnimVal.Equals(SvgSpreadMethod.Repeat)) + else if(res.SpreadMethod.AnimVal.Equals((ushort)SvgSpreadMethod.Repeat)) { brush.WrapMode = WrapMode.Tile; } - else if(res.SpreadMethod.AnimVal.Equals(SvgSpreadMethod.Pad)) + else if(res.SpreadMethod.AnimVal.Equals((ushort)SvgSpreadMethod.Pad)) { brush.WrapMode = WrapMode.Tile; } |