Merge pull request 'Fix issues with H-Bias rendering' (#1) from hbias-fix into main
Reviewed-on: #1
This commit is contained in:
commit
ab29f47004
|
@ -984,7 +984,7 @@ static void vipDrawHBias(VB *sim, World *world) {
|
||||||
/* Process all visible lines */
|
/* Process all visible lines */
|
||||||
param = &sim->vip.ram[world->paramBase +
|
param = &sim->vip.ram[world->paramBase +
|
||||||
((y1 - world->gy) << 2) + (i << 1)];
|
((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 */
|
/* Configure window bounds */
|
||||||
wnd.y1 = y;
|
wnd.y1 = y;
|
||||||
|
@ -992,7 +992,7 @@ static void vipDrawHBias(VB *sim, World *world) {
|
||||||
|
|
||||||
/* Draw the background into the window */
|
/* Draw the background into the window */
|
||||||
vipDrawBackground(sim->vip.shadow[i], &wnd, world,
|
vipDrawBackground(sim->vip.shadow[i], &wnd, world,
|
||||||
mx + busReadBuffer(param, VB_S16), my);
|
mx - busReadBuffer(param, VB_S16), my);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue