Closed Cazka closed 2 years ago
The methods that are impacted by this should be:
https://github.com/Cazka/diepAPI/blob/c734f8962d9a3f4e82bbafc1851585004d36d0f5/src/arena_scaling.ts#L34
https://github.com/Cazka/diepAPI/blob/c734f8962d9a3f4e82bbafc1851585004d36d0f5/src/arena_scaling.ts#L43
The reason it doesn't work on retina displays is that window.devicePixelRatio is not 1.
window.devicePixelRatio
The methods that are impacted by this should be:
https://github.com/Cazka/diepAPI/blob/c734f8962d9a3f4e82bbafc1851585004d36d0f5/src/arena_scaling.ts#L34
https://github.com/Cazka/diepAPI/blob/c734f8962d9a3f4e82bbafc1851585004d36d0f5/src/arena_scaling.ts#L43
The reason it doesn't work on retina displays is that
window.devicePixelRatio
is not 1.