aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-29 20:36:22 +0000
committerGravatar djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-08-29 20:36:22 +0000
commit20146b3f7339d2c71c416397135e70e34f7fedb1 (patch)
tree64a9347833f376a2a562121114de09ec8c3b470e
parent06822ea87266548b2dfa5d3421e4d874e1290980 (diff)
fix windows test error for CanvasStateTest.cpp
Review URL: https://codereview.chromium.org/23539005 git-svn-id: http://skia.googlecode.com/svn/trunk@11015 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/CanvasStateTest.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp
index bb7d9e2b07..c6756a732e 100644
--- a/tests/CanvasStateTest.cpp
+++ b/tests/CanvasStateTest.cpp
@@ -21,7 +21,9 @@ static void test_complex_layers(skiatest::Reporter* reporter) {
const int HEIGHT = 400;
const int SPACER = 10;
- SkRect rect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7);
+ SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER),
+ SkIntToScalar(WIDTH-(2*SPACER)),
+ SkIntToScalar((HEIGHT-(2*SPACER)) / 7));
const SkBitmap::Config configs[] = { SkBitmap::kRGB_565_Config,
SkBitmap::kARGB_8888_Config