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

Commit ae3611d2 authored by Lucas Berthou's avatar Lucas Berthou
Browse files

SF: fixing typo

This is in theory a no-op change since the chances of dpiX == -1 && dpiY
!= -1 are virtually null. But for correctedness might be good to clean
up.

Flag: com.android.graphics.surfaceflinger.flags.correct_dpi_with_display_size
Bug: 361413340
Test: HWComposerTest
Change-Id: I967edcf86f92b94db7b861129ab788567c133618
parent 6c38f234
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ std::vector<HWComposer::HWCDisplayMode> HWComposer::getModesFromLegacyDisplayCon
        const int32_t dpiX = getAttribute(hwcDisplayId, configId, hal::Attribute::DPI_X);
        const int32_t dpiY = getAttribute(hwcDisplayId, configId, hal::Attribute::DPI_Y);
        const DisplayConfiguration::Dpi hwcDpi =
                DisplayConfiguration::Dpi{dpiX == -1 ? dpiY : dpiX / 1000.f,
                DisplayConfiguration::Dpi{dpiX == -1 ? dpiX : dpiX / 1000.f,
                                          dpiY == -1 ? dpiY : dpiY / 1000.f};
        const DisplayConfiguration::Dpi estimatedDPI =
                getEstimatedDotsPerInchFromSize(hwcDisplayId, hwcMode);