Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incorrect calculation of vertical shift (maplibre#22)
In [this PR](https://github.com/maplibre/maplibre-gl-native/pull/270/files#diff-d57cd3143ace69af2f7ae79a917ac1328acc7543ae8a2a15f58b4635b86f1b91R148) in the maplibre there was a typo during adding `static_cast<float>`. And because of this the logic of calculation `shiftY` is broken. This PR makes it correct. | Before | After | | - | - | | <img width="390" alt="image" src="https://user-images.githubusercontent.com/8909650/168667685-587d1ca4-54a2-435c-99ed-0be575304b68.png"> | <img width="388" alt="image" src="https://user-images.githubusercontent.com/8909650/168667701-85940ff2-66a5-4e47-828e-573279ea5620.png"> |
- Loading branch information