Closed tGecko closed 1 month ago
Use the same algorithm to calculate the volume as MainUI
(x << 7) / 20 is equivalent to (x * 128) / 20 which is just plain linear scaling
(x << 7) / 20
(x * 128) / 20
Comparison:
Fixes #1046
Use the same algorithm to calculate the volume as MainUI
(x << 7) / 20
is equivalent to(x * 128) / 20
which is just plain linear scalingComparison:![image](https://github.com/OnionUI/Onion/assets/6023076/8c76b872-5ef8-4b62-aaf4-094f69641bb3)
Fixes #1046