OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
076d059
)
Don't convert 4444 images to 565.
author
Romain Guy
<romainguy@google.com>
Tue, 1 Feb 2011 06:05:58 +0000
(22:05 -0800)
committer
Romain Guy
<romainguy@google.com>
Tue, 1 Feb 2011 06:05:58 +0000
(22:05 -0800)
Bug #
3327175
Change-Id: I46d970e41947278f4c2476b347fd2403fe9a05e8
graphics/java/android/graphics/Bitmap.java
patch
|
blob
|
history
diff --git
a/graphics/java/android/graphics/Bitmap.java
b/graphics/java/android/graphics/Bitmap.java
index
2b4a410
..
a773007
100644
(file)
--- a/
graphics/java/android/graphics/Bitmap.java
+++ b/
graphics/java/android/graphics/Bitmap.java
@@
-464,8
+464,8
@@
public final class Bitmap implements Parcelable {
Rect srcR = new Rect(x, y, x + width, y + height);
RectF dstR = new RectF(0, 0, width, height);
- final Config newConfig = source.getConfig() == Config.ARGB_8888
?
- Config.ARGB_8888 : Config.RGB_565;
+ final Config newConfig = source.getConfig() == Config.ARGB_8888
||
+
source.getConfig() == Config.ARGB_4444 ?
Config.ARGB_8888 : Config.RGB_565;
if (m == null || m.isIdentity()) {
bitmap = createBitmap(neww, newh, newConfig, source.hasAlpha());