revert pixel ratio multiplier

This commit is contained in:
Eden Halperin
2014-05-13 16:11:45 -07:00
parent 017cf45ee2
commit ee230c1c98

View File

@@ -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) {