From 48a1c7ee6101ee3f17cb45c6b69f6a4a5cc815a7 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 5 Aug 2021 13:41:53 -0700 Subject: [PATCH] Don't lerp when drawing all-sides warp background There's nothing to interpolate. It moves at one pixel per frame. And interpolating sometimes results in the box being short by 1 pixel to cover the whole screen on deltaframes, so if you stand on the right edge of the screen and have a translucent sprite, it will quickly draw over itself many times, and it looks glitchy. This commit fixes that bug. --- desktop_version/src/Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 2660df34..b5bbf56d 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2325,7 +2325,7 @@ void Graphics::drawbackground( int t ) for (int i = 10 ; i >= 0; i--) { - temp = (i << 4) + lerp(backoffset - 1, backoffset); + temp = (i << 4) + backoffset; setwarprect(160 - temp, 120 - temp, temp * 2, temp * 2); if (i % 2 == warpskip) {