r61524: fix hardcoded VRAM and don't assume full-size

This commit is contained in:
Lephe 2021-06-16 21:12:53 +02:00
parent 10180d31bc
commit 658413ba19
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 4 deletions

View File

@ -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