reset angle on resize to small zooms

This commit is contained in:
Justin R. Miller
2014-05-22 16:54:04 -07:00
parent dbd877cb80
commit 3f55302fb5

View File

@@ -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;