r61524: fix r61524_display() not fully honoring [start]

This commit is contained in:
Lephe 2022-03-23 20:42:18 +00:00
parent 93169e8803
commit 4223164063
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

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