summaryrefslogtreecommitdiff
path: root/libs/hwui/PatchCache.cpp
diff options
context:
space:
mode:
author Chris Craik <ccraik@google.com> 2013-02-15 19:33:43 -0800
committer Chris Craik <ccraik@google.com> 2013-02-15 19:33:43 -0800
commit9935abceea10df337969f08cce05b7c02bb1eb19 (patch)
tree718183b5c47ea48485b173a729145bf54bd2f971 /libs/hwui/PatchCache.cpp
parent8d1a6af408d798dec46a8b1230b7327551fb8051 (diff)
Correct PatchCache comparison logic
Change-Id: I3d0832505b5380bfa362863b39e09dd10f792582
Diffstat (limited to 'libs/hwui/PatchCache.cpp')
-rw-r--r--libs/hwui/PatchCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/PatchCache.cpp b/libs/hwui/PatchCache.cpp
index f48f8572cbc2..62e38d3dbcbe 100644
--- a/libs/hwui/PatchCache.cpp
+++ b/libs/hwui/PatchCache.cpp
@@ -51,10 +51,10 @@ int PatchCache::PatchDescription::compare(
if (deltaInt != 0) return deltaInt;
if (lhs.pixelWidth < rhs.pixelWidth) return -1;
- if (lhs.pixelWidth > lhs.pixelWidth) return +1;
+ if (lhs.pixelWidth > rhs.pixelWidth) return +1;
if (lhs.pixelHeight < rhs.pixelHeight) return -1;
- if (lhs.pixelHeight > lhs.pixelHeight) return +1;
+ if (lhs.pixelHeight > rhs.pixelHeight) return +1;
deltaInt = lhs.xCount - rhs.xCount;
if (deltaInt != 0) return deltaInt;