Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,14 @@ void cvideo_dma_handler(void) {

// Then the border scanlines
//
case 6 ... 68:
case 6 ... 67:
case 261 ... 309:
dma_channel_set_read_addr(dma_channel_0, border, true);
break;
case 68: // Last top-border line: re-anchor bline so bitmap[0] is at top
dma_channel_set_read_addr(dma_channel_0, border, true);
bline = 1;
break;

// Now point the dma at the first buffer for the pixel data,
// and preload the data for the next scanline
Expand Down