diff options
Diffstat (limited to 'tests/BlitRowTest.cpp')
-rw-r--r-- | tests/BlitRowTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/BlitRowTest.cpp b/tests/BlitRowTest.cpp index 91d6b94e75..d18cb8a7fa 100644 --- a/tests/BlitRowTest.cpp +++ b/tests/BlitRowTest.cpp @@ -207,7 +207,8 @@ static void test_diagonal(skiatest::Reporter* reporter) { SkBitmap srcBM; srcBM.setConfig(SkBitmap::kARGB_8888_Config, W, H); srcBM.allocPixels(); - SkRect srcR = { 0, 0, srcBM.width(), srcBM.height() }; + SkRect srcR = { + 0, 0, SkIntToScalar(srcBM.width()), SkIntToScalar(srcBM.height()) }; // cons up a mesh to draw the bitmap with Mesh mesh(srcBM, &paint); |