diff --git a/core/vip.c b/core/vip.c index f2e96f8..c0e33ce 100644 --- a/core/vip.c +++ b/core/vip.c @@ -891,10 +891,10 @@ static void vipDrawNormal(VB *sim, World *world) { wnd.y1 = world->gy; if (wnd.y1 >= 224) return; - wnd.y2 = wnd.y1 + world->height; + wnd.y2 = world->gy + world->height; if (wnd.y2 <= 0) return; - my = wnd.y1 - world->my; + my = world->gy - world->my; if (wnd.y1 < 0) wnd.y1 = 0; if (wnd.y2 > 224) @@ -944,10 +944,10 @@ static void vipDrawHBias(VB *sim, World *world) { y1 = world->gy; if (y1 >= 224) return; - y2 = y1 + world->height; + y2 = world->gy + world->height; if (y2 <= 0) return; - my = y1 - world->my; + my = world->gy - world->my; if (y1 < 0) y1 = 0; if (y2 > 224)