summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-10-16 14:32:27 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2009-10-16 14:32:27 -0700
commit22ba121b59d0e6ebba32de4fa8d9025d01863952 (patch)
treeadad251fc19702e6e66b554b953d8c94fdadc984 /include
parentd8d7d53bd761ee9455a41939b51a17645b5c02ab (diff)
parent7bb7e99216956d917af1786a3e02a92cac46fc84 (diff)
downloadframeworks_base-22ba121b59d0e6ebba32de4fa8d9025d01863952.zip
frameworks_base-22ba121b59d0e6ebba32de4fa8d9025d01863952.tar.gz
frameworks_base-22ba121b59d0e6ebba32de4fa8d9025d01863952.tar.bz2
am 7bb7e992: Merge change Ia8ac904d into eclair
Merge commit '7bb7e99216956d917af1786a3e02a92cac46fc84' into eclair-plus-aosp * commit '7bb7e99216956d917af1786a3e02a92cac46fc84': fix [2182249] [MR1] valgrind error in surface flinger
Diffstat (limited to 'include')
-rw-r--r--include/private/ui/RegionHelper.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/include/private/ui/RegionHelper.h b/include/private/ui/RegionHelper.h
index 926fddb..8d76533 100644
--- a/include/private/ui/RegionHelper.h
+++ b/include/private/ui/RegionHelper.h
@@ -86,7 +86,7 @@ public:
rasterizer(current);
}
}
- } while(!spannerInner.isDone());
+ } while(!spannerInner.isDone());
} while(!spanner.isDone());
}
@@ -220,18 +220,21 @@ private:
}
inline void prepare(int inside) {
- 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::lhs_head = lhs.rects->left + lhs.dx;
+ SpannerBase::lhs_tail = lhs.rects->right + lhs.dx;
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;
}
}