[1/10] gdiplus: added GdipScaleMatrix [try2]

Alexandre Julliard julliard at winehq.org
Thu Jul 19 05:03:42 CDT 2007


"Evan Stade" <estade at gmail.com> writes:

> +GpStatus WINGDIPAPI GdipScaleMatrix(GpMatrix *matrix, REAL scaleX, REAL scaleY,
> +    GpMatrixOrder order)
> +{
> +    REAL scale[6];
> +
> +    if(!matrix)
> +        return InvalidParameter;
> +
> +    memset(scale, 0, 6 * sizeof(REAL));

Using memset for floats is not a good idea, you should use explicit
initialization.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list