mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
Fixing issue where FastBitmapDrawable is not scaling the drawing into the correct bounds. (Bug 9075810)
Change-Id: I3a72f51d6b3c934a5fa42a3478dcb2c363047957
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