mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03: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:
@@ -104,8 +104,6 @@ void Graphics::init()
|
|||||||
|
|
||||||
// initialize everything else to zero
|
// initialize everything else to zero
|
||||||
backBuffer = NULL;
|
backBuffer = NULL;
|
||||||
bcol = 0;
|
|
||||||
bcol2 = 0;
|
|
||||||
ct = colourTransform();
|
ct = colourTransform();
|
||||||
foot_rect = SDL_Rect();
|
foot_rect = SDL_Rect();
|
||||||
foregrounddrawn = false;
|
foregrounddrawn = false;
|
||||||
@@ -1966,6 +1964,9 @@ void Graphics::drawbackground( int t )
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
{
|
||||||
|
int bcol, bcol2;
|
||||||
|
|
||||||
//Lab
|
//Lab
|
||||||
switch(rcol)
|
switch(rcol)
|
||||||
{
|
{
|
||||||
@@ -2112,6 +2113,7 @@ void Graphics::drawbackground( int t )
|
|||||||
FillRect(backBuffer,backboxrect, bcol2);
|
FillRect(backBuffer,backboxrect, bcol2);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case 3: //Warp zone (horizontal)
|
case 3: //Warp zone (horizontal)
|
||||||
FillRect(backBuffer, 0x000000);
|
FillRect(backBuffer, 0x000000);
|
||||||
BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL);
|
BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL);
|
||||||
|
|||||||
@@ -200,7 +200,7 @@ public:
|
|||||||
|
|
||||||
colourTransform ct;
|
colourTransform ct;
|
||||||
|
|
||||||
int bcol, bcol2, rcol;
|
int rcol;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user