Fix clipping in StrokeRectGM test for fixed point.
authorbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 May 2011 21:29:25 +0000 (21:29 +0000)
committerbungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 19 May 2011 21:29:25 +0000 (21:29 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@1388 2bbb7eff-a529-9590-31e7-b0007b416f81

gm/strokerects.cpp

index b716407..8f53e92 100644 (file)
@@ -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++) {