Merge "Fix physical display ratio incorrect" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e266bac2bf
@@ -899,8 +899,8 @@ public class ScreenDecorations extends CoreStartable implements Tunable , Dumpab
|
|||||||
final DisplayInfo displayInfo = new DisplayInfo();
|
final DisplayInfo displayInfo = new DisplayInfo();
|
||||||
mContext.getDisplay().getDisplayInfo(displayInfo);
|
mContext.getDisplay().getDisplayInfo(displayInfo);
|
||||||
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
|
return DisplayUtils.getPhysicalPixelDisplaySizeRatio(
|
||||||
stableDisplaySize.x, stableDisplaySize.y, displayInfo.logicalWidth,
|
stableDisplaySize.x, stableDisplaySize.y, displayInfo.getNaturalWidth(),
|
||||||
displayInfo.logicalHeight);
|
displayInfo.getNaturalHeight());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user