1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Remove line_rect and prect

`prect` just wasn't needed as it was used in one place, and
`line_rect` isn't used anymore.
This commit is contained in:
AllyTally 2023-05-22 15:48:13 -03:00 committed by Misa Elizabeth Kai
parent 81ad7ed9d6
commit d93d773a8a
2 changed files with 4 additions and 10 deletions

View file

@ -26,12 +26,10 @@
void Graphics::init(void)
{
flipmode = false;
setRect(tiles_rect, 0,0,8,8);
setRect(sprites_rect, 0,0,32,32);
setRect(tiles_rect, 0, 0, 8, 8);
setRect(sprites_rect, 0, 0, 32, 32);
setRect(footerrect, 0, 230, 320, 10);
setRect(prect, 0, 0, 4, 4);
setRect(line_rect, 0,0,0,0);
setRect(tele_rect,0,0,96,96);
setRect(tele_rect, 0, 0, 96, 96);
// We initialise a few things
@ -2150,9 +2148,7 @@ void Graphics::drawentity(const int i, const int yoff)
break;
}
case 3: // Big chunky pixels!
prect.x = xp;
prect.y = yp - yoff;
fill_rect(&prect, obj.entities[i].realcol);
fill_rect(xp, yp - yoff, 4, 4, obj.entities[i].realcol);
break;
case 4: // Small pickups
{

View file

@ -358,10 +358,8 @@ public:
SDL_Rect tiles_rect;
SDL_Rect sprites_rect;
SDL_Rect line_rect;
SDL_Rect tele_rect;
SDL_Rect prect;
SDL_Rect footerrect;
int linestate, linedelay;