From 658413ba19eb51b9635f9d9542fc914ee7d01cce Mon Sep 17 00:00:00 2001 From: Lephe Date: Wed, 16 Jun 2021 21:12:53 +0200 Subject: [PATCH] r61524: fix hardcoded VRAM and don't assume full-size --- src/r61524/r61524.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/r61524/r61524.c b/src/r61524/r61524.c index 466112b..8f976b5 100644 --- a/src/r61524/r61524.c +++ b/src/r61524/r61524.c @@ -136,13 +136,12 @@ void r61524_display(uint16_t *vram, int start, int height, int method) if(method == R61524_CPU) { - extern uint16_t *gint_vram; - for(int i = 396*start; i < 396*(start+height); i++) - write(gint_vram[i]); + for(int i = 0; i < 396 * height; i++) + write(vram[i]); return; } - void *src = vram + 396 * start; + void *src = vram; void *dst = (void *)0xb4000000; /* The amount of data sent per row, 396*2, is not a multiple of 32. For