From 4223164063d245359a3b6165066d74f1a2977778 Mon Sep 17 00:00:00 2001 From: Lephe Date: Wed, 23 Mar 2022 20:42:18 +0000 Subject: [PATCH] r61524: fix r61524_display() not fully honoring [start] --- src/r61524/r61524.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r61524/r61524.c b/src/r61524/r61524.c index b1416c3..708608f 100644 --- a/src/r61524/r61524.c +++ b/src/r61524/r61524.c @@ -158,11 +158,11 @@ void r61524_display(uint16_t *vram, int start, int height, int method) if(method == R61524_CPU) { for(int i = 0; i < 396 * height; i++) - write(vram[i]); + write(vram[i + 396 * start]); return; } - void *src = vram; + void *src = (void *)vram + start * 396*2; void *dst = (void *)0xb4000000; /* The amount of data sent per row, 396*2, is not a multiple of 32. For