Fixed Painting gradient stroke

git-svn-id: svn://ultimatepp.org/upp/trunk@788 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2009-01-19 22:39:54 +00:00
parent aed483f15a
commit 4572d52900
2 changed files with 7 additions and 7 deletions

View file

@ -107,24 +107,24 @@ void PaintingPainter::StrokeOp(double width, const Image& image, const Matrix2D&
void PaintingPainter::StrokeOp(double width, double x1, double y1, const RGBA& color1, double x2, double y2, const RGBA& color2, int style)
{
Put(PAINTING_STROKE_GRADIENT);
Put(color1);
Put(color2);
Put(style);
Putf(width);
Putf(x1, y1);
Put(color1);
Putf(x2, y2);
Put(color2);
Put(style);
}
void PaintingPainter::StrokeOp(double width, double fx, double fy, const RGBA& color1, double x, double y, double r, const RGBA& color2, int style)
{
Put(PAINTING_STROKE_RADIAL);
Put(color1);
Put(color2);
Put(style);
Putf(width);
Putf(fx, fy);
Put(color1);
Putf(x, y);
Putf(r);
Put(color2);
Put(style);
}
void PaintingPainter::ClipOp()

View file

@ -35,7 +35,7 @@ namespace agg
}
static int xi(int v) { return v; }
static int yi(int v) { return v; }
static int upscale(double v) { STIMING("upscale"); return iround(v * poly_subpixel_scale); }
static int upscale(double v) { return iround(v * poly_subpixel_scale); }
static int downscale(int v) { return v; }
};