LinearGradient::color_func(const Point &point, float supersample)const
{
Real dist(point*diff-p1*diff);
LinearGradient::color_func(const Point &point, float supersample)const
{
Real dist(point*diff-p1*diff);
Point tl(renddesc.get_tl());
const int w(surface->get_w());
const int h(surface->get_h());
Point tl(renddesc.get_tl());
const int w(surface->get_w());
const int h(surface->get_h());
if(get_amount()==1.0 && get_blend_method()==Color::BLEND_STRAIGHT)
{
for(y=0,pos[1]=tl[1];y<h;y++,pen.inc_y(),pen.dec_x(x),pos[1]+=ph)
if(get_amount()==1.0 && get_blend_method()==Color::BLEND_STRAIGHT)
{
for(y=0,pos[1]=tl[1];y<h;y++,pen.inc_y(),pen.dec_x(x),pos[1]+=ph)