From f16ecf59074e6c1f6296eb03f30b744eaa66779f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Tue, 5 Dec 2017 14:43:04 +0100 Subject: [core] don't include .cpp file --- src/mbgl/text/placement.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/mbgl/text/placement.cpp b/src/mbgl/text/placement.cpp index e363d7bc03..334748dda6 100644 --- a/src/mbgl/text/placement.cpp +++ b/src/mbgl/text/placement.cpp @@ -2,7 +2,7 @@ #include #include #include -#include +#include #include #include @@ -66,14 +66,14 @@ void Placement::placeLayer(RenderSymbolLayer& symbolLayer, const mat4& projMatri matrix::multiply(posMatrix, projMatrix, posMatrix); mat4 textLabelPlaneMatrix = getLabelPlaneMatrix(posMatrix, - layout.get() == style::AlignmentType::Map, - layout.get() == style::AlignmentType::Map, + layout.get() == style::AlignmentType::Map, + layout.get() == style::AlignmentType::Map, state, pixelsToTileUnits); mat4 iconLabelPlaneMatrix = getLabelPlaneMatrix(posMatrix, - layout.get() == style::AlignmentType::Map, - layout.get() == style::AlignmentType::Map, + layout.get() == style::AlignmentType::Map, + layout.get() == style::AlignmentType::Map, state, pixelsToTileUnits); @@ -95,8 +95,8 @@ void Placement::placeLayerBucket( auto partiallyEvaluatedTextSize = bucket.textSizeBinder->evaluateForZoom(state.getZoom()); auto partiallyEvaluatedIconSize = bucket.iconSizeBinder->evaluateForZoom(state.getZoom()); - const bool iconWithoutText = !bucket.hasTextData() || bucket.layout.get(); - const bool textWithoutIcon = !bucket.hasIconData() || bucket.layout.get(); + const bool iconWithoutText = !bucket.hasTextData() || bucket.layout.get(); + const bool textWithoutIcon = !bucket.hasIconData() || bucket.layout.get(); for (auto& symbolInstance : bucket.symbolInstances) { @@ -119,8 +119,8 @@ void Placement::placeLayerBucket( auto placed = collisionIndex.placeFeature(symbolInstance.textCollisionFeature, posMatrix, textLabelPlaneMatrix, textPixelRatio, placedSymbol, scale, fontSize, - bucket.layout.get(), - bucket.layout.get() == style::AlignmentType::Map, + bucket.layout.get(), + bucket.layout.get() == style::AlignmentType::Map, showCollisionBoxes); placeText = placed.first; offscreen &= placed.second; @@ -133,8 +133,8 @@ void Placement::placeLayerBucket( auto placed = collisionIndex.placeFeature(symbolInstance.iconCollisionFeature, posMatrix, iconLabelPlaneMatrix, textPixelRatio, placedSymbol, scale, fontSize, - bucket.layout.get(), - bucket.layout.get() == style::AlignmentType::Map, + bucket.layout.get(), + bucket.layout.get() == style::AlignmentType::Map, showCollisionBoxes); placeIcon = placed.first; offscreen &= placed.second; @@ -150,11 +150,11 @@ void Placement::placeLayerBucket( } if (placeText) { - collisionIndex.insertFeature(symbolInstance.textCollisionFeature, bucket.layout.get()); + collisionIndex.insertFeature(symbolInstance.textCollisionFeature, bucket.layout.get()); } if (placeIcon) { - collisionIndex.insertFeature(symbolInstance.iconCollisionFeature, bucket.layout.get()); + collisionIndex.insertFeature(symbolInstance.iconCollisionFeature, bucket.layout.get()); } assert(symbolInstance.crossTileID != 0); -- cgit v1.2.1