revert pixel ratio multiplier
This commit is contained in:
@@ -176,7 +176,7 @@ void Painter::translateLayer(const std::array<float, 2> &translation, const Tile
|
||||
const int direction = reverse ? -1 : 1;
|
||||
// TODO: Get rid of the 8 (scaling from 4096 to tile size)
|
||||
const double factor = direction * ((double)(1 << id.z)) / map.getState().getScale() /
|
||||
1 * (4096.0 / util::tileSize);
|
||||
map.getState().getPixelRatio() * (4096.0 / util::tileSize);
|
||||
matrix::translate(matrix, matrix, translation[0] * factor, translation[1] * factor, 0);
|
||||
}
|
||||
}
|
||||
@@ -187,7 +187,7 @@ mat4 Painter::translatedMatrix(const std::array<float, 2> &translation, const Ti
|
||||
} else {
|
||||
// TODO: Get rid of the 8 (scaling from 4096 to tile size)
|
||||
const double factor = ((double)(1 << id.z)) / map.getState().getScale() /
|
||||
1 * (4096.0 / util::tileSize);
|
||||
map.getState().getPixelRatio() * (4096.0 / util::tileSize);
|
||||
|
||||
mat4 result;
|
||||
if (anchor == TranslateAnchor::Viewport) {
|
||||
|
||||
Reference in New Issue
Block a user