Commit a60afbe
committed
fix: fix getDisplayScale
- The default display scale for a trait collection is 0.0 (indicating unspecified).
- But, UIScreen.scale is for standard-resolution displays(none retina displays), the scale factor is 1.0 and one point equals one pixel.1 parent 8eaa3a1 commit a60afbe
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments