Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ansis committed Dec 6, 2019
1 parent 08c2da0 commit d733f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mbgl/text/collision_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static const float viewportPaddingDefault = 100;
// Viewport padding must be much larger for static tiles to avoid clipped labels.
static const float viewportPaddingForStaticTiles = 1024;

CollisionIndex::CollisionIndex(const TransformState& transformState_, const MapMode& mapMode)
CollisionIndex::CollisionIndex(const TransformState& transformState_, MapMode& mapMode)
: transformState(transformState_),
viewportPadding(mapMode == MapMode::Tile ? viewportPaddingForStaticTiles : viewportPaddingDefault),
collisionGrid(transformState.getSize().width + 2 * viewportPadding,
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/text/collision_index.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CollisionIndex {
public:
using CollisionGrid = GridIndex<IndexedSubfeature>;

explicit CollisionIndex(const TransformState&, const MapMode&);
explicit CollisionIndex(const TransformState&, MapMode&);

std::pair<bool,bool> placeFeature(const CollisionFeature& feature,
Point<float> shift,
Expand Down

0 comments on commit d733f53

Please sign in to comment.