From 08282517850e48a585e0ca653693e2c9352a770f Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Fri, 19 Oct 2018 22:27:42 +0200 Subject: [PATCH] disable shtupid empty pixel rows --- src/cljs/topdown2d/tileset.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cljs/topdown2d/tileset.cljs b/src/cljs/topdown2d/tileset.cljs index 2a65b5c..72c253f 100644 --- a/src/cljs/topdown2d/tileset.cljs +++ b/src/cljs/topdown2d/tileset.cljs @@ -61,7 +61,7 @@ sy (* y tileheight)] (.drawImage ctx image sx sy tilewidth tileheight - (:x dest) (:y dest) + (int (:x dest)) (int (:y dest)) target-width target-height))) (defn draw-viewport [map-def ctx viewport]