From 11afa2ae4b19d91b083b7fb8a3e3c4c1ad9b2022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sun, 20 Oct 2019 08:28:38 +0200 Subject: [PATCH] Fix getTexel --- assets.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets.h b/assets.h index 96dcd97..3118e6a 100644 --- a/assets.h +++ b/assets.h @@ -40,7 +40,7 @@ static inline uint8_t SFG_getTexel(const uint8_t *texture, uint8_t x, uint8_t y) y &= 0x1f; return texture[ - (texture[16 + (x * SFG_TEXTURE_SIZE + y) / 2] >> (4 * (y % 2))) & 0x0f]; + (texture[16 + (x * SFG_TEXTURE_SIZE + y) / 2] >> (4 * (y % 2 == 0))) & 0x0f]; } SFG_PROGRAM_MEMORY uint8_t