From 9e9640e4ac961e6f52d163cb41ca9d7b26fe84aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Thu, 16 Jan 2014 14:43:23 +0100 Subject: fix wiggle at high zooms --- src/map/transform.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/map/transform.cpp b/src/map/transform.cpp index 3c028be149..6dbfad1711 100644 --- a/src/map/transform.cpp +++ b/src/map/transform.cpp @@ -141,8 +141,7 @@ void transform::matrixFor(float matrix[16], const vec3& id) const { mat4_rotate_z(matrix, matrix, angle); mat4_translate(matrix, matrix, -0.5f * (float)width, -0.5f * (float)height, 0); - mat4_translate(matrix, matrix, pixel_x(), pixel_y(), 0); - mat4_translate(matrix, matrix, id.x * tile_size, id.y * tile_size, 0); + mat4_translate(matrix, matrix, pixel_x() + id.x * tile_size, pixel_y() + id.y * tile_size, 0); // TODO: Get rid of the 8 (scaling from 4096 to 512 px tile size); mat4_scale(matrix, matrix, scale / tile_scale / 8, scale / tile_scale / 8, 1); -- cgit v1.2.1