diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-04 12:59:22 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-08-04 12:59:22 +0200 |
commit | 9dd50a29e1e8b975e09172b19b303063a96ba20f (patch) | |
tree | 0f35c1d304aafcf465762484848d33e58342c391 /src/text/placement.cpp | |
parent | 19e51e8bd89f0e627045b623a2a57b6702bca896 (diff) | |
download | qtlocation-mapboxgl-9dd50a29e1e8b975e09172b19b303063a96ba20f.tar.gz |
update shaders and backport some collision changes
Diffstat (limited to 'src/text/placement.cpp')
-rw-r--r-- | src/text/placement.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/text/placement.cpp b/src/text/placement.cpp index ae5bf46bf6..75988cc997 100644 --- a/src/text/placement.cpp +++ b/src/text/placement.cpp @@ -272,10 +272,11 @@ void Placement::addFeature(SymbolBucket &bucket, const std::vector<Coordinate> & PlacedGlyphs glyphs; GlyphBoxes boxes; - getGlyphs(glyphs, boxes, anchor, info.text.offset, shaping, face, fontScale, horizontal, line, - info.text.max_angle_delta * (M_PI/180), info.text.rotate); - PlacementProperty place = collision.place(boxes, anchor, anchor.scale, maxPlacementScale, - info.text.padding, horizontal, info.text.ignore_placement); + getGlyphs(glyphs, boxes, anchor, info.text.offset, shaping, face, fontScale, horizontal, + line, info.text.max_angle_delta * (M_PI / 180), info.text.rotate); + PlacementProperty place = + collision.place(boxes, anchor, anchor.scale, maxPlacementScale, info.text.padding, + horizontal, info.text.allow_overlap, info.text.ignore_placement); if (place) { bucket.addGlyphs(glyphs, place.zoom, place.rotationRange, zoom - zOffset); } |