diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-19 21:29:25 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-05-19 21:29:25 +0000 |
commit | 0368d06a29d985785e05a733de9d428b62663d9c (patch) | |
tree | 2bff110558d3c8c1841965f48aee9504529c3dbb /gm/strokerects.cpp | |
parent | 2368f6f57265240c086cd20bb4e4cbe99f216373 (diff) |
Fix clipping in StrokeRectGM test for fixed point.
git-svn-id: http://skia.googlecode.com/svn/trunk@1388 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/strokerects.cpp')
-rw-r--r-- | gm/strokerects.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/strokerects.cpp b/gm/strokerects.cpp index b716407212..8f53e92b5e 100644 --- a/gm/strokerects.cpp +++ b/gm/strokerects.cpp @@ -63,7 +63,7 @@ protected: SkAutoCanvasRestore acr(canvas, true); canvas->translate(SW * x, SH * y); - canvas->clipRect(SkRect::MakeLTRB(2, 2, SW - 2, SH - 2)); + canvas->clipRect(SkRect::MakeLTRB(SkIntToScalar(2), SkIntToScalar(2), SW - SkIntToScalar(2), SH - SkIntToScalar(2))); SkRandom rand; for (int i = 0; i < N; i++) { |