mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Move backboxrect off of Graphics
No need for a temporary rect to be on the Graphics class itself.
This commit is contained in:
@@ -95,7 +95,6 @@ void Graphics::init()
|
||||
|
||||
// initialize everything else to zero
|
||||
backBuffer = NULL;
|
||||
backboxrect = SDL_Rect();
|
||||
bcol = 0;
|
||||
bcol2 = 0;
|
||||
ct = colourTransform();
|
||||
@@ -1952,7 +1951,7 @@ void Graphics::drawbackground( int t )
|
||||
break;
|
||||
}
|
||||
|
||||
backboxrect = backboxes[i];
|
||||
SDL_Rect backboxrect = backboxes[i];
|
||||
backboxrect.x = lerp(backboxes[i].x - backboxvx[i], backboxes[i].x);
|
||||
backboxrect.y = lerp(backboxes[i].y - backboxvy[i], backboxes[i].y);
|
||||
|
||||
|
||||
@@ -284,7 +284,6 @@ public:
|
||||
std::vector<int> backboxvx;
|
||||
std::vector<int> backboxvy;
|
||||
std::vector<float> backboxint;
|
||||
SDL_Rect backboxrect;
|
||||
|
||||
int warpskip, warpfcol, warpbcol;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user