diff options
Diffstat (limited to 'gm/colormatrix.cpp')
-rw-r--r-- | gm/colormatrix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/colormatrix.cpp b/gm/colormatrix.cpp index 3cc9c028dc..cc5cfbc22a 100644 --- a/gm/colormatrix.cpp +++ b/gm/colormatrix.cpp @@ -61,7 +61,8 @@ protected: for (int x = 0; x < width; ++x) { SkPaint paint; paint.setColor(SkColorSetARGB(255, x * 255 / width, y * 255 / height, 0)); - canvas.drawRect(SkRect::MakeXYWH(x, y, 1, 1), paint); + canvas.drawRect(SkRect::MakeXYWH(SkIntToScalar(x), + SkIntToScalar(y), SK_Scalar1, SK_Scalar1), paint); } } return bm; |