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

Move temporary bcol/bcol2 off of Graphics

Looks like I had missed yet another two temporary variables that were
actually globals on the Graphics class. Glad I caught these ones.
This commit is contained in:
Misa 2020-11-02 13:02:51 -08:00 committed by Ethan Lee
parent 25ae117f6a
commit 20e02f014b
2 changed files with 5 additions and 3 deletions

View file

@ -104,8 +104,6 @@ void Graphics::init()
// initialize everything else to zero
backBuffer = NULL;
bcol = 0;
bcol2 = 0;
ct = colourTransform();
foot_rect = SDL_Rect();
foregrounddrawn = false;
@ -1966,6 +1964,9 @@ void Graphics::drawbackground( int t )
}
break;
case 2:
{
int bcol, bcol2;
//Lab
switch(rcol)
{
@ -2112,6 +2113,7 @@ void Graphics::drawbackground( int t )
FillRect(backBuffer,backboxrect, bcol2);
}
break;
}
case 3: //Warp zone (horizontal)
FillRect(backBuffer, 0x000000);
BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL);

View file

@ -200,7 +200,7 @@ public:
colourTransform ct;
int bcol, bcol2, rcol;
int rcol;