fvdhoef / vera-module

Versatile Embedded Retro Adapter
MIT License
107 stars 44 forks source link

Corrupted/stretched 16-pixel wide tiles in 2bpp mode #17

Closed jburks closed 2 years ago

jburks commented 2 years ago

Both 16x8 and 16x16 tiles appear stretched and some tiles do not show at all due to invalid address calculation in layer renderer.

E.g. with these five test tile targets:

image

Rendering tile 2 on top of tile 3 comes out as this:

image

It is not possible to render tile 3 as its address is always calculated to be in the middle of tile 2.

fvdhoef commented 2 years ago

Wow, thanks for all your thorough testing and fixing!