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:
commit
dee6975aaa
1 file changed
+2
-1
@@ -45,7 +45,8 @@ class FastBitmapDrawable extends Drawable {
|
|||||||
@Override
|
@Override
|
||||||
public void draw(Canvas canvas) {
|
public void draw(Canvas canvas) {
|
||||||
final Rect r = getBounds();
|
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
|
@Override
|
||||||
|
|||||||
Reference in new issue
Block a user