Skip to content

Commit

Permalink
Merge pull request #392 from hammerlab/fix-shearing
Browse files Browse the repository at this point in the history
Don't stretch tiles vertically
  • Loading branch information
danvk committed Nov 24, 2015
2 parents a0c70f3 + f215e07 commit f43066e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/TiledCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ class TiledCanvas {
// rounding issues, which can result in 1px gaps or overdrawing.
// We always have:
// width - tile.buffer.width \in {-1, 0, +1}
ctx.drawImage(tile.buffer, 0, 0, tile.buffer.width, tile.buffer.height, left, 0, width, height);
ctx.drawImage(tile.buffer,
0, 0, tile.buffer.width, tile.buffer.height,
left, 0, width, tile.buffer.height);

if (DEBUG_RENDER_TILE_EDGES) {
ctx.save();
Expand Down

0 comments on commit f43066e

Please sign in to comment.