mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-04 11:53:47 +00:00
committed by
Konstantin Pastbin
parent
7781528263
commit
836c39ff64
@@ -12,6 +12,7 @@
|
||||
#include "indexer/scales.hpp"
|
||||
|
||||
#include "base/logging.hpp"
|
||||
#include "base/math.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
@@ -306,7 +307,7 @@ bool TrafficRenderer::CanBeRenderedAsLine(RoadClass const & roadClass, int zoomL
|
||||
if (it == lineDrawerEnd)
|
||||
return false;
|
||||
|
||||
width = std::max(1, static_cast<int>(std::lround(TrafficRenderer::GetPixelWidthInternal(roadClass, zoomLevel))));
|
||||
width = std::max(1, math::iround(TrafficRenderer::GetPixelWidthInternal(roadClass, zoomLevel)));
|
||||
return width <= dp::SupportManager::Instance().GetMaxLineWidth();
|
||||
}
|
||||
} // namespace df
|
||||
|
||||
Reference in New Issue
Block a user