Index: src/images/SkImageDecoder.cpp |
diff --git a/src/images/SkImageDecoder.cpp b/src/images/SkImageDecoder.cpp |
index 60cc44c5b4263f15fe58198cba6fc691608a9a19..daeee9f0b9388de98e28af9247c2405e55fd8477 100644 |
--- a/src/images/SkImageDecoder.cpp |
+++ b/src/images/SkImageDecoder.cpp |
@@ -206,8 +206,8 @@ |
paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
SkCanvas canvas(*dst); |
- canvas.drawBitmap(*src, SkIntToScalar((srcX - dstX) / sampleSize), |
- SkIntToScalar((srcY - dstY) / sampleSize), |
+ canvas.drawSprite(*src, (srcX - dstX) / sampleSize, |
+ (srcY - dstY) / sampleSize, |
&paint); |
return true; |
} |