From 41f44d908039b17b9f925a3df384fef0e16379d8 Mon Sep 17 00:00:00 2001 From: David Capello Date: Tue, 27 Dec 2016 11:09:39 -0300 Subject: [PATCH 1/2] Minor changes in the issue template --- ISSUE_TEMPLATE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 02643517d..673a802b7 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -5,5 +5,5 @@ Describe your bug report or feature request here ### Aseprite and System version -* Aseprite (version number, installer/portable/Steam/beta/dev): -* System (Win/OSX/Linux, version, distribution): +* Aseprite version: version number, installer/portable/Steam/beta/dev/commit-hash +* System: Windows/macOS/Linux, version, distribution From 19b52a68b97ca479fc64dd68c0390a33b4d776a3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 28 Dec 2016 12:43:13 -0300 Subject: [PATCH 2/2] Fix rendering artifacts when Apply Zoom is disabled and bg grid isn't aligned with pixels (fix #1349) --- src/render/render.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/render/render.cpp b/src/render/render.cpp index 6ec6d7d1b..20fcaf73f 100644 --- a/src/render/render.cpp +++ b/src/render/render.cpp @@ -19,6 +19,8 @@ #include "gfx/clip.h" #include "gfx/region.h" +#include + namespace render { namespace { @@ -754,6 +756,13 @@ void Render::renderBackground(Image* image, if (tile_w < zoom.apply(1)) tile_w = zoom.apply(1); if (tile_h < zoom.apply(1)) tile_h = zoom.apply(1); + // Tiles must be aligned with pixels + double intpart; + if (std::modf(double(tile_w) / zoom.apply(1.0), &intpart) != 0.0) + tile_w = intpart*zoom.apply(1); + if (std::modf(double(tile_h) / zoom.apply(1.0), &intpart) != 0.0) + tile_h = intpart*zoom.apply(1); + if (tile_w < 1) tile_w = 1; if (tile_h < 1) tile_h = 1;