Merge "Fix physical display ratio incorrect" into tm-dev

This commit is contained in:
TreeHugger Robot
2022-05-05 02:55:12 +00:00
committed by Android (Google) Code Review

View File

@@ -899,8 +899,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
final DisplayInfo displayInfo = new DisplayInfo();
mContext.getDisplay().getDisplayInfo(displayInfo);
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
stableDisplaySize.x, stableDisplaySize.y, displayInfo.logicalWidth,
displayInfo.logicalHeight);
stableDisplaySize.x, stableDisplaySize.y, displayInfo.getNaturalWidth(),
displayInfo.getNaturalHeight());
}
@Override