mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove unused arguments from Graphics::drawtile()
The 'r', 'g', and 'b' arguments do absolutely nothing, even though they're used in the version of Graphics::drawtile() that's more used. So delete the other version without those extra arguments, and then remove the extra arguments from the remaining version. And then update callers.
This commit is contained in:
@@ -556,7 +556,7 @@ void Graphics::drawsprite( int x, int y, int t, int r, int g, int b )
|
||||
BlitSurfaceColoured(sprites[t], NULL, backBuffer, &rect, ct);
|
||||
}
|
||||
|
||||
void Graphics::drawtile( int x, int y, int t, int r, int g, int b )
|
||||
void Graphics::drawtile( int x, int y, int t )
|
||||
{
|
||||
SDL_Rect rect = { Sint16(x), Sint16(y), tiles_rect.w, tiles_rect.h };
|
||||
BlitSurfaceStandard(tiles[t], NULL, backBuffer, &rect);
|
||||
@@ -3198,13 +3198,6 @@ void Graphics::setcolreal(Uint32 t)
|
||||
ct.colour = t;
|
||||
}
|
||||
|
||||
void Graphics::drawtile(int x, int y, int t)
|
||||
{
|
||||
SDL_Rect drawRect;
|
||||
setRect(drawRect,x,y, tiles_rect.w, tiles_rect.h );
|
||||
BlitSurfaceStandard(tiles[t] ,NULL, backBuffer,&drawRect);
|
||||
}
|
||||
|
||||
void Graphics::drawforetile(int x, int y, int t)
|
||||
{
|
||||
//frontbuffer.copyPixels(tiles[t], tiles_rect, tpoint);
|
||||
|
||||
Reference in New Issue
Block a user