Merge "Fix issue #8540550: Screenshots should never have transparency" into jb-mr2-dev

This commit is contained in:
Dianne Hackborn
2013-04-18 02:00:45 +00:00
committed by Android (Google) Code Review

View File

@@ -5490,6 +5490,7 @@ public class WindowManagerService extends IWindowManager.Stub
ScreenRotationAnimation.createRotationMatrix(rot, dw, dh, matrix);
matrix.postTranslate(-FloatMath.ceil(frame.left*scale), -FloatMath.ceil(frame.top*scale));
Canvas canvas = new Canvas(bm);
canvas.drawColor(0xFF000000);
canvas.drawBitmap(rawss, matrix, null);
canvas.setBitmap(null);