From 58ab105a3c38f0ee1f148ff84382c3dbfc53fa94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Jahoda?= Date: Thu, 23 Nov 2017 19:52:19 +0100 Subject: [PATCH] Fix one off error. --- src/tic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tic.c b/src/tic.c index 9b76d90..ba84878 100644 --- a/src/tic.c +++ b/src/tic.c @@ -240,8 +240,8 @@ static void drawTile(tic_machine* machine, const tic_tile* buffer, s32 x, s32 y, { s32 i; s32 ix, iy; - ix = a == 1?px:TIC_SPRITESIZE-px; - iy = b == 1?py:TIC_SPRITESIZE-py; + ix = a == 1 ? px : TIC_SPRITESIZE - px - 1; + iy = b == 1 ? py : TIC_SPRITESIZE - py - 1; if(swap_axis) { i = ix * TIC_SPRITESIZE + iy; } else {