diff options
author | Ansis Brammanis <brammanis@gmail.com> | 2015-01-27 19:15:22 -0800 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2015-01-27 19:15:22 -0800 |
commit | 793985580d202de8613a09bfe176b102eff04cdc (patch) | |
tree | bf6199d78cf60e21f2cbb729df3cec84c6900eb0 /.mason | |
parent | 5aefe40bf9989e9556ca8700951ee919c9406bc2 (diff) | |
download | qtlocation-mapboxgl-793985580d202de8613a09bfe176b102eff04cdc.tar.gz |
fix sprite atlas padding and icon centering
Pad each icon with one pixel on the bottom and right sides.
On top of this, extra padding is added to round the widths and heights
to multiples of four.
This then fixes the positions of the bottom and right vertices to
correctly center the icon's box around the center of the icon, not the
center of the padded icon.
js: 32ca4007699d1d21ab25bb38588b151510194030
fixes https://github.com/mapbox/mapbox-gl-js/issues/947
Diffstat (limited to '.mason')
0 files changed, 0 insertions, 0 deletions