[core] Added PrecisionPoint to represent pixel points

This commit is contained in:
Bruno de Oliveira Abinader
2015-11-10 11:50:04 +02:00
parent e5c460f2db
commit e2052ea3e4
8 changed files with 30 additions and 17 deletions

View File

@@ -372,7 +372,7 @@ void Painter::renderBackground(const BackgroundLayer& layer) {
patternShader->u_opacity = properties.opacity;
LatLng latLng = state.getLatLng();
vec2<double> center = state.latLngToPoint(latLng);
PrecisionPoint center = state.latLngToPoint(latLng);
float scale = 1 / std::pow(2, zoomFraction);
std::array<float, 2> sizeA = imagePosA.size;