From 0368d06a29d985785e05a733de9d428b62663d9c Mon Sep 17 00:00:00 2001 From: "bungeman@google.com" Date: Thu, 19 May 2011 21:29:25 +0000 Subject: [PATCH] Fix clipping in StrokeRectGM test for fixed point. git-svn-id: http://skia.googlecode.com/svn/trunk@1388 2bbb7eff-a529-9590-31e7-b0007b416f81 --- gm/strokerects.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gm/strokerects.cpp b/gm/strokerects.cpp index b716407..8f53e92 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++) { -- 2.7.4