diff options
| author | 2010-07-09 17:03:14 -0700 | |
|---|---|---|
| committer | 2010-07-09 17:03:14 -0700 | |
| commit | b14f325a0118ffce286155caaabaae149653462c (patch) | |
| tree | 9b697de6cf04521e85d54cce2d0d2e2e56222a0b /libs/ui/Rect.cpp | |
| parent | 0260887ca78330b8dd7009d91859925df94a69d6 (diff) | |
| parent | 289b9b62372ef52a06113b83dfb870e2c2fb325a (diff) | |
am 289b9b62: Add ANativeWindow API for directly drawing to the surface bits.
Merge commit '289b9b62372ef52a06113b83dfb870e2c2fb325a' into gingerbread-plus-aosp
* commit '289b9b62372ef52a06113b83dfb870e2c2fb325a':
Add ANativeWindow API for directly drawing to the surface bits.
Diffstat (limited to 'libs/ui/Rect.cpp')
| -rw-r--r-- | libs/ui/Rect.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/ui/Rect.cpp b/libs/ui/Rect.cpp index 66b95762d050..5694e000025d 100644 --- a/libs/ui/Rect.cpp +++ b/libs/ui/Rect.cpp @@ -18,11 +18,11 @@ namespace android { -static inline int min(int a, int b) { +static inline int32_t min(int32_t a, int32_t b) { return (a<b) ? a : b; } -static inline int max(int a, int b) { +static inline int32_t max(int32_t a, int32_t b) { return (a>b) ? a : b; } @@ -53,7 +53,7 @@ bool Rect::operator < (const Rect& rhs) const return false; } -Rect& Rect::offsetTo(int x, int y) +Rect& Rect::offsetTo(int32_t x, int32_t y) { right -= left - x; bottom -= top - y; @@ -62,7 +62,7 @@ Rect& Rect::offsetTo(int x, int y) return *this; } -Rect& Rect::offsetBy(int x, int y) +Rect& Rect::offsetBy(int32_t x, int32_t y) { left += x; top += y; |