Fix issues with HBias rendering

This commit is contained in:
Simon Gellis 2025-08-14 23:46:39 -04:00
parent 483714c0d6
commit 8b020ad808
1 changed files with 2 additions and 2 deletions

View File

@ -984,7 +984,7 @@ static void vipDrawHBias(VB *sim, World *world) {
/* Process all visible lines */
param = &sim->vip.ram[world->paramBase +
((y1 - world->gy) << 2) + (i << 1)];
for (y = y1; y < y2; y++, param += 2) {
for (y = y1; y < y2; y++, param += 4) {
/* Configure window bounds */
wnd.y1 = y;
@ -992,7 +992,7 @@ static void vipDrawHBias(VB *sim, World *world) {
/* Draw the background into the window */
vipDrawBackground(sim->vip.shadow[i], &wnd, world,
mx + busReadBuffer(param, VB_S16), my);
mx - busReadBuffer(param, VB_S16), my);
}
}