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

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

am 7bb7e992: Merge change Ia8ac904d into eclair

Merge commit '7bb7e99216956d917af1786a3e02a92cac46fc84' into eclair-mr2

* commit '7bb7e99216956d917af1786a3e02a92cac46fc84':
  fix [2182249] [MR1] valgrind error in surface flinger
parents 318ad9c1 7b9d6a92
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -220,18 +220,21 @@ private:
        }

        inline void prepare(int inside) {
            if (inside == SpannerBase::lhs_before_rhs) {
                SpannerBase::lhs_head = lhs.rects->left  + lhs.dx;
                SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
            SpannerBase::rhs_head = rhs.rects->left  + rhs.dx;
            SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
            if (inside == SpannerBase::lhs_before_rhs) {
                SpannerBase::rhs_head = max_value;
                SpannerBase::rhs_tail = max_value;
            } else if (inside == SpannerBase::lhs_after_rhs) {
                SpannerBase::lhs_head = max_value;
                SpannerBase::lhs_tail = max_value;
                SpannerBase::rhs_head = rhs.rects->left  + rhs.dx;
                SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
            } else {
                // use both spans
                SpannerBase::lhs_head = lhs.rects->left  + lhs.dx;
                SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
                SpannerBase::rhs_head = rhs.rects->left  + rhs.dx;
                SpannerBase::rhs_tail = rhs.rects->right + rhs.dx;
            }
        }