mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 07:46:55 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user