From 8b020ad8081df0d5cab1296411e8488ed2d8cf8d Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Thu, 14 Aug 2025 23:46:39 -0400 Subject: [PATCH] Fix issues with HBias rendering --- core/vip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/vip.c b/core/vip.c index ca4239f..e7ad01a 100644 --- a/core/vip.c +++ b/core/vip.c @@ -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); } } -- 2.40.1