1e41f4b71Sopenharmony_ci# Window Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.display.1 Calculation Method of xDPI and yDPI of a Display Object Is Optimized
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Access Level**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciPublic API
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Reason for Change**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciSince API version 12, the calculation method of xDPI and yDPI of a **Display** object is changed so that the values of xDPI and yDPI do not change with the display rotation.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Change Impact**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThis change is a non-compatible change.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ciIn API version 11 and earlier versions, the calculation of xDPI and yDPI of a **Display** object changes with the display rotation. As a result, the values of xDPI and yDPI obtained by the application change dynamically.
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciIn API version 12 and later versions, the calculation of xDPI and yDPI of a **Display** object does not change with the display rotation. The values of xDPI and yDPI obtained by the application are fixed.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Start API Level**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciAPI version 7
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**Change Since**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ciOpenHarmony SDK 5.0.0.29
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Key API/Component Changes**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_cixDPI and yDPI of a **Display** object.
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ci**Adaptation Guide**
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ciDuring the adaptation, check whether the changed behavior affects the UI effect.
36