1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2025-01-10 19:09:45 +01:00

Move backboxrect off of Graphics

No need for a temporary rect to be on the Graphics class itself.
This commit is contained in:
Misa 2020-04-28 19:54:53 -07:00 committed by Ethan Lee
parent 4e533c65a5
commit 9ea5734abb
2 changed files with 1 additions and 3 deletions

View file

@ -95,7 +95,6 @@ void Graphics::init()
// initialize everything else to zero // initialize everything else to zero
backBuffer = NULL; backBuffer = NULL;
backboxrect = SDL_Rect();
bcol = 0; bcol = 0;
bcol2 = 0; bcol2 = 0;
ct = colourTransform(); ct = colourTransform();
@ -1952,7 +1951,7 @@ void Graphics::drawbackground( int t )
break; break;
} }
backboxrect = backboxes[i]; SDL_Rect backboxrect = backboxes[i];
backboxrect.x = lerp(backboxes[i].x - backboxvx[i], backboxes[i].x); backboxrect.x = lerp(backboxes[i].x - backboxvx[i], backboxes[i].x);
backboxrect.y = lerp(backboxes[i].y - backboxvy[i], backboxes[i].y); backboxrect.y = lerp(backboxes[i].y - backboxvy[i], backboxes[i].y);

View file

@ -284,7 +284,6 @@ public:
std::vector<int> backboxvx; std::vector<int> backboxvx;
std::vector<int> backboxvy; std::vector<int> backboxvy;
std::vector<float> backboxint; std::vector<float> backboxint;
SDL_Rect backboxrect;
int warpskip, warpfcol, warpbcol; int warpskip, warpfcol, warpbcol;