mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-10 10:59: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:
parent
4e533c65a5
commit
9ea5734abb
2 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue