summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
Diffstat (limited to 'libs')
-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 f48f857..62e38d3 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;