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

Commit 62302d34 authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am ebf6a72b: Merge "Surfaceflinger expects rectangles to be specified...

am ebf6a72b: Merge "Surfaceflinger expects rectangles to be specified right/bottom edge exclusive." into honeycomb-mr1

* commit 'ebf6a72b3536646ade389c7afa828e316eb93c21':
  Surfaceflinger expects rectangles to be specified right/bottom edge exclusive.
parents 3979f08f 89c120e7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1081,8 +1081,8 @@ void ACodec::sendFormatChange() {
                android_native_rect_t crop;
                crop.left = rect.nLeft;
                crop.top = rect.nTop;
                crop.right = rect.nLeft + rect.nWidth - 1;
                crop.bottom = rect.nTop + rect.nHeight - 1;
                crop.right = rect.nLeft + rect.nWidth;
                crop.bottom = rect.nTop + rect.nHeight;

                CHECK_EQ(0, native_window_set_crop(
                            mNativeWindow.get(), &crop));
+2 −2
Original line number Diff line number Diff line
@@ -2233,8 +2233,8 @@ void OMXCodec::onEvent(OMX_EVENTTYPE event, OMX_U32 data1, OMX_U32 data2) {
                        android_native_rect_t crop;
                        crop.left = left;
                        crop.top = top;
                        crop.right = right;
                        crop.bottom = bottom;
                        crop.right = right + 1;
                        crop.bottom = bottom + 1;

                        // We'll ignore any errors here, if the surface is
                        // already invalid, we'll know soon enough.