From 377984afaf25c54fbc12984effa9496eb47e28ff Mon Sep 17 00:00:00 2001 From: Christopher Eby Date: Sat, 20 Feb 2010 14:08:31 -0600 Subject: [PATCH] Omit a bogus paramter to drawBitmap It is unnecessary, wrong and causes problems if the bitmap needs to be scaled down --- src/org/kreed/tumult/CoverView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/kreed/tumult/CoverView.java b/src/org/kreed/tumult/CoverView.java index 0b4fd802..77dee06e 100755 --- a/src/org/kreed/tumult/CoverView.java +++ b/src/org/kreed/tumult/CoverView.java @@ -95,7 +95,7 @@ public class CoverView extends View { Bitmap cover = song.coverPath == null ? null : BitmapFactory.decodeFile(song.coverPath); if (cover != null) { RectF dest = scale(cover, width, height); - canvas.drawBitmap(cover, new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight()), dest, paint); + canvas.drawBitmap(cover, null, dest, paint); cover.recycle(); cover = null; }