mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-12-21 14:58:49 -05:00
Fix getTexel
This commit is contained in:
parent
03a6c06042
commit
11afa2ae4b
2
assets.h
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user