From 3f55302fb52a70cc646ddcd57ab062e94ef514f1 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Thu, 22 May 2014 16:54:04 -0700 Subject: [PATCH] reset angle on resize to small zooms --- src/map/transform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/transform.cpp b/src/map/transform.cpp index 4f13fdaf8..23e42b764 100644 --- a/src/map/transform.cpp +++ b/src/map/transform.cpp @@ -34,6 +34,7 @@ bool Transform::resize(const uint16_t w, const uint16_t h, const float ratio, current.framebuffer[0] = final.framebuffer[0] = fb_w; current.framebuffer[1] = final.framebuffer[1] = fb_h; constrain(current.scale, current.y); + if (current.scale < MIN_ROTATE_SCALE && current.angle) _setAngle(0, 0); return true; } else { return false;