Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5126633a authored by Mathias Agopian's avatar Mathias Agopian Committed by Android Git Automerger
Browse files

am 2d468c5d: Make sure SurfaceView use a 565 surface when requesting an OPAQUE format.

Merge commit '2d468c5d' into gingerbread-plus-aosp

* commit '2d468c5d':
  Make sure SurfaceView use a 565 surface when requesting an OPAQUE format.
parents e0e5da0d 2d468c5d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -724,6 +724,12 @@ public class SurfaceView extends View {
        }

        public void setFormat(int format) {

            // for backward compatibility reason, OPAQUE always
            // means 565 for SurfaceView
            if (format == PixelFormat.OPAQUE)
                format = PixelFormat.RGB_565;

            mRequestedFormat = format;
            if (mWindow != null) {
                updateWindow(false);