mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Placefile polygon Linux fixes
This commit is contained in:
parent
cdef5a9938
commit
0c5a504ad5
2 changed files with 9 additions and 7 deletions
|
|
@ -261,8 +261,8 @@ void PlacefileLayer::Render(
|
|||
{params.latitude, params.longitude});
|
||||
p->mapScale_ = std::pow(2.0, params.zoom) * mbgl::util::tileSize_D /
|
||||
mbgl::util::DEGREES_MAX;
|
||||
p->mapBearingCos_ = std::cosf(params.bearing * common::kDegreesToRadians);
|
||||
p->mapBearingSin_ = std::sinf(params.bearing * common::kDegreesToRadians);
|
||||
p->mapBearingCos_ = cosf(params.bearing * common::kDegreesToRadians);
|
||||
p->mapBearingSin_ = sinf(params.bearing * common::kDegreesToRadians);
|
||||
p->halfWidth_ = params.width * 0.5f;
|
||||
p->halfHeight_ = params.height * 0.5f;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue