From 07a052484f684056d87eb13229d80011e9985e95 Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Fri, 14 Jun 2013 17:45:30 +0000 Subject: [PATCH] Fix for r9609 git-svn-id: http://skia.googlecode.com/svn/trunk@9618 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/GrAARectRenderer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gpu/GrAARectRenderer.cpp b/src/gpu/GrAARectRenderer.cpp index 0f0d1d446c..df4e32adc1 100644 --- a/src/gpu/GrAARectRenderer.cpp +++ b/src/gpu/GrAARectRenderer.cpp @@ -70,8 +70,8 @@ public: // 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 // used in the interior of the rect after the ramp. - builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2*insetW/spanW);\n"); - builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2*insetH/spanH);\n"); + builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n"); + builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n"); // Compute the coverage for the rect's width builder->fsCodeAppendf( -- 2.34.1