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

Commit ac838a3a authored by Chris Craik's avatar Chris Craik Committed by Android (Google) Code Review
Browse files

Merge "Correct PatchCache comparison logic"

parents 840b5069 9935abce
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;