diff options
-rw-r--r-- | src/core/SkDraw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/SkDraw.cpp b/src/core/SkDraw.cpp index 4db759474f..cff4252579 100644 --- a/src/core/SkDraw.cpp +++ b/src/core/SkDraw.cpp @@ -1762,7 +1762,7 @@ bool SkTriColorShader::TriColorShaderContext::setup(const SkPoint pts[], const S #include "SkComposeShader.h" static int ScalarTo256(SkScalar v) { - return static_cast<int>(SkScalarPin(v, 0, 1) * 256); + return static_cast<int>(SkScalarPin(v, 0, 1) * 256 + 0.5); } |