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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -158,11 +158,11 @@ void r61524_display(uint16_t *vram, int start, int height, int method)
if(method == R61524_CPU) if(method == R61524_CPU)
{ {
for(int i = 0; i < 396 * height; i++) for(int i = 0; i < 396 * height; i++)
write(vram[i]); write(vram[i + 396 * start]);
return; return;
} }
void *src = vram; void *src = (void *)vram + start * 396*2;
void *dst = (void *)0xb4000000; void *dst = (void *)0xb4000000;
/* The amount of data sent per row, 396*2, is not a multiple of 32. For /* The amount of data sent per row, 396*2, is not a multiple of 32. For