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:
Misa
2020-04-01 15:42:22 -07:00
committed by Ethan Lee
parent af8d7345c9
commit 5c60b8df5f
3 changed files with 25 additions and 34 deletions

View File

@@ -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);