Spritetm / hadbadge2019_fpgasoc

FPGA SoC code and application example for Hackaday Supercon 2019 badge
Other
157 stars 70 forks source link

frame buffer problem causes horizontal line problems at specific y positions #143

Closed mattvenn closed 10 months ago

mattvenn commented 4 years ago

Expected behaviour

drawing a horizontal line by setting pixels in the frame buffer should result in a single pixel wide line on the display.

Resulting behaviour

To reproduce

shaos commented 1 year ago

Based on my experience it looks like DMA draws every ODD line of framebuffer twice (and EVEN lines are completely ignored). This is happening with FB only - tiles and sprites look high-res...

shaos commented 1 year ago

It sounds funny, but I think I've just fixed EVEN lines issue :)

Example with lines from Matt now draw "ghost" short line in case of y=4, but in all other cases lines look correct (I made background blue to count pixels): badge

shaos commented 1 year ago

This is my pull-request: https://github.com/Spritetm/hadbadge2019_fpgasoc/pull/155

Spritetm commented 10 months ago

Seems fixed by Shaos' PR.