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

Commit 4d8b28e2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "SF: fixing estimatedDpi checking x twice" into main

parents e09845e4 685c352e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -305,7 +305,7 @@ DisplayConfiguration::Dpi HWComposer::correctedDpiIfneeded(
    // The logic here checks if hwc was able to provide some dpi, and if so if the dpi
    // disparity between the axes is more reasonable than a rough estimate, otherwise use
    // the estimated dpi as a corrected value.
    if (estimatedDpi.x == -1 || estimatedDpi.x == -1) {
    if (estimatedDpi.x == -1 || estimatedDpi.y == -1) {
        return dpi;
    }
    if (dpi.x == -1 || dpi.y == -1) {