Commit 6013d8c
committed
Fix DPI scaling on TVDPI
Bug: 6891214
tvdpi has a density of 1.3312501 which we fail on as we assume
you can take density and multiply by 100, cast to an int, and
divide by 100f to get back to the original density. Force this
assumption to be true by truncating density
Change-Id: I0caeb7768ee002f935b41c77a5579ffeed491f821 parent 5dbeb6a commit 6013d8c
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
2539 | 2542 | | |
2540 | 2543 | | |
2541 | 2544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
290 | 291 | | |
291 | 292 | | |
292 | 293 | | |
| |||
909 | 910 | | |
910 | 911 | | |
911 | 912 | | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
912 | 921 | | |
913 | 922 | | |
914 | 923 | | |
| |||
933 | 942 | | |
934 | 943 | | |
935 | 944 | | |
| 945 | + | |
936 | 946 | | |
937 | 947 | | |
938 | 948 | | |
| |||
1004 | 1014 | | |
1005 | 1015 | | |
1006 | 1016 | | |
| 1017 | + | |
1007 | 1018 | | |
1008 | 1019 | | |
1009 | 1020 | | |
| |||
1033 | 1044 | | |
1034 | 1045 | | |
1035 | 1046 | | |
| 1047 | + | |
1036 | 1048 | | |
1037 | 1049 | | |
1038 | 1050 | | |
| |||
1113 | 1125 | | |
1114 | 1126 | | |
1115 | 1127 | | |
| 1128 | + | |
1116 | 1129 | | |
1117 | 1130 | | |
1118 | 1131 | | |
| |||
0 commit comments