Lines Matching refs:sx

480 static void nsvg__xformSetScale(float* t, float sx, float sy)  in nsvg__xformSetScale()  argument
482 t[0] = sx; t[1] = 0.0f; in nsvg__xformSetScale()
918 float sx = sqrtf(t[0]*t[0] + t[2]*t[2]); in nsvg__getAverageScale() local
920 return (sx + sy) * 0.5f; in nsvg__getAverageScale()
2864 static void nsvg__scaleGradient(NSVGgradient* grad, float tx, float ty, float sx, float sy) in nsvg__scaleGradient() argument
2870 nsvg__xformSetScale(t, sx, sy); in nsvg__scaleGradient()
2878 float tx, ty, sx, sy, us, bounds[4], t[6], avgs; in nsvg__scaleToViewbox() local
2908 sx = p->viewWidth > 0 ? p->image->width / p->viewWidth : 0; in nsvg__scaleToViewbox()
2916 sx = sy = nsvg__minf(sx, sy); in nsvg__scaleToViewbox()
2917 tx += nsvg__viewAlign(p->viewWidth*sx, p->image->width, p->alignX) / sx; in nsvg__scaleToViewbox()
2921 sx = sy = nsvg__maxf(sx, sy); in nsvg__scaleToViewbox()
2922 tx += nsvg__viewAlign(p->viewWidth*sx, p->image->width, p->alignX) / sx; in nsvg__scaleToViewbox()
2927 sx *= us; in nsvg__scaleToViewbox()
2929 avgs = (sx+sy) / 2.0f; in nsvg__scaleToViewbox()
2931 shape->bounds[0] = (shape->bounds[0] + tx) * sx; in nsvg__scaleToViewbox()
2933 shape->bounds[2] = (shape->bounds[2] + tx) * sx; in nsvg__scaleToViewbox()
2936 path->bounds[0] = (path->bounds[0] + tx) * sx; in nsvg__scaleToViewbox()
2938 path->bounds[2] = (path->bounds[2] + tx) * sx; in nsvg__scaleToViewbox()
2942 pt[0] = (pt[0] + tx) * sx; in nsvg__scaleToViewbox()
2948 nsvg__scaleGradient(shape->fill.gradient, tx,ty, sx,sy); in nsvg__scaleToViewbox()
2953 nsvg__scaleGradient(shape->stroke.gradient, tx,ty, sx,sy); in nsvg__scaleToViewbox()