am 8a196351: Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)

* commit '8a196351ef7e100857e6c6d5b344d1d780584887':
  Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
This commit is contained in:
Winson Chung
2013-05-28 17:10:04 -07:00
committed by Android Git Automerger

View File

@@ -45,7 +45,8 @@ class FastBitmapDrawable extends Drawable {
@Override
public void draw(Canvas canvas) {
final Rect r = getBounds();
canvas.drawBitmap(mBitmap, r.left, r.top, mPaint);
// Draw the bitmap into the bounding rect
canvas.drawBitmap(mBitmap, null, r, mPaint);
}
@Override