Fix for r9609

git-svn-id: http://skia.googlecode.com/svn/trunk@9618 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
robertphillips@google.com 2013-06-14 17:45:30 +00:00
parent be19b9ef9a
commit 07a052484f

View File

@ -70,8 +70,8 @@ public:
// For rects < 1 pixel wide or tall, these scale factors are used to cap the maximum // For rects < 1 pixel wide or tall, these scale factors are used to cap the maximum
// value of coverage that is used. In other words it is the coverage that is // value of coverage that is used. In other words it is the coverage that is
// used in the interior of the rect after the ramp. // used in the interior of the rect after the ramp.
builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2*insetW/spanW);\n"); builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n");
builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2*insetH/spanH);\n"); builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n");
// Compute the coverage for the rect's width // Compute the coverage for the rect's width
builder->fsCodeAppendf( builder->fsCodeAppendf(