Index: gm/drawbitmaprect.cpp |
diff --git a/gm/drawbitmaprect.cpp b/gm/drawbitmaprect.cpp |
index 9db5ca71dae4b303245ce8428cc631ad300b45d7..2a41465a3591000002c682f412cb9d8285cc3c1f 100644 |
--- a/gm/drawbitmaprect.cpp |
+++ b/gm/drawbitmaprect.cpp |
@@ -152,10 +152,7 @@ protected: |
static const int kPadY = 40; |
SkPaint paint; |
paint.setAlpha(0x20); |
- canvas->drawBitmapRect(fLargeBitmap, NULL, |
- SkRect::MakeWH(gSize * SK_Scalar1, |
- gSize * SK_Scalar1), |
- &paint); |
+ canvas->drawBitmapRect(fLargeBitmap, SkRect::MakeIWH(gSize, gSize), &paint); |
canvas->translate(SK_Scalar1 * kPadX / 2, |
SK_Scalar1 * kPadY / 2); |
SkPaint blackPaint; |