mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove unused or useless SDL_Rects from Graphics
These were bfont_rect, bg_rect, foot_rect, and images_rect. bg_rect was only used once to draw the ghost buffer in the editor, but that was only because Ally didn't know you could just pass NULL in, cuz the ghost buffer is the same size as the backbuffer.
This commit is contained in:
@@ -929,7 +929,7 @@ void editorrender(void)
|
|||||||
BlitSurfaceColoured(graphics.sprites[ed.ghosts[i].frame],NULL, graphics.ghostbuffer, &drawRect, graphics.ct);
|
BlitSurfaceColoured(graphics.sprites[ed.ghosts[i].frame],NULL, graphics.ghostbuffer, &drawRect, graphics.ct);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SDL_BlitSurface(graphics.ghostbuffer, NULL, graphics.backBuffer, &graphics.bg_rect);
|
SDL_BlitSurface(graphics.ghostbuffer, NULL, graphics.backBuffer, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Draw Cursor
|
//Draw Cursor
|
||||||
|
|||||||
@@ -19,8 +19,6 @@ void Graphics::init(void)
|
|||||||
flipmode = false;
|
flipmode = false;
|
||||||
setRect(tiles_rect, 0,0,8,8);
|
setRect(tiles_rect, 0,0,8,8);
|
||||||
setRect(sprites_rect, 0,0,32,32);
|
setRect(sprites_rect, 0,0,32,32);
|
||||||
setRect(bfont_rect, 0,0,8,8);
|
|
||||||
setRect(bg_rect, 0,0,320,240);
|
|
||||||
setRect(footerrect, 0, 230, 320, 10);
|
setRect(footerrect, 0, 230, 320, 10);
|
||||||
setRect(prect, 0, 0, 4, 4);
|
setRect(prect, 0, 0, 4, 4);
|
||||||
setRect(line_rect, 0,0,0,0);
|
setRect(line_rect, 0,0,0,0);
|
||||||
@@ -103,11 +101,9 @@ void Graphics::init(void)
|
|||||||
// initialize everything else to zero
|
// initialize everything else to zero
|
||||||
backBuffer = NULL;
|
backBuffer = NULL;
|
||||||
ct = colourTransform();
|
ct = colourTransform();
|
||||||
foot_rect = SDL_Rect();
|
|
||||||
foregrounddrawn = false;
|
foregrounddrawn = false;
|
||||||
foregroundBuffer = NULL;
|
foregroundBuffer = NULL;
|
||||||
backgrounddrawn = false;
|
backgrounddrawn = false;
|
||||||
images_rect = SDL_Rect();
|
|
||||||
m = 0;
|
m = 0;
|
||||||
linedelay = 0;
|
linedelay = 0;
|
||||||
menubuffer = NULL;
|
menubuffer = NULL;
|
||||||
|
|||||||
@@ -268,16 +268,12 @@ public:
|
|||||||
TowerBG towerbg;
|
TowerBG towerbg;
|
||||||
TowerBG titlebg;
|
TowerBG titlebg;
|
||||||
|
|
||||||
SDL_Rect bfont_rect;
|
|
||||||
SDL_Rect tiles_rect;
|
SDL_Rect tiles_rect;
|
||||||
SDL_Rect sprites_rect;
|
SDL_Rect sprites_rect;
|
||||||
SDL_Rect images_rect;
|
|
||||||
SDL_Rect bg_rect;
|
|
||||||
SDL_Rect line_rect;
|
SDL_Rect line_rect;
|
||||||
SDL_Rect tele_rect;
|
SDL_Rect tele_rect;
|
||||||
SDL_Rect towerbuffer_rect;
|
SDL_Rect towerbuffer_rect;
|
||||||
|
|
||||||
SDL_Rect foot_rect;
|
|
||||||
SDL_Rect prect;
|
SDL_Rect prect;
|
||||||
SDL_Rect footerrect;
|
SDL_Rect footerrect;
|
||||||
SDL_Surface* footerbuffer;
|
SDL_Surface* footerbuffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user