fvdhoef / vera-module

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

Enabling layers displays data from the line where the layer was disabled, not the current display line. #36

Open Yazwh0 opened 1 year ago

Yazwh0 commented 1 year ago

As an example, have 3 lines -- Red, Green and Blue, drawn in 8x8 tiles.

Using a line interrupt turn the layer off in the red section.

Turn the layer back on on the line before the blue section, so the last line of the green part. (The line before, as rendering is done to the line buffer on the previous line.)

We should either see green, or nothing. However we currently see a red line.

This was introduced with this PR: https://github.com/fvdhoef/vera-module/pull/35

Current hardware: image Link: https://discordapp.com/channels/547559626024157184/547560914744901644/1077336180997230752

How it used to work (and arguably should) image

Example prg: https://discordapp.com/channels/547559626024157184/547560914744901644/1077329433263882270 Example code: https://discordapp.com/channels/547559626024157184/547560914744901644/1077329961905570012