1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 06:28:30 +02:00

Clean up style of drawcoloredtile

All unmutated parameters have been made const.

Declarations and code are no longer mixed.

Spacing has been made consistent.
This commit is contained in:
Misa 2021-09-03 15:34:45 -07:00
parent 1b236d5ec7
commit 9a637d0c0f

View File

@ -1614,17 +1614,24 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
}
void Graphics::drawcoloredtile( int x, int y, int t, int r, int g, int b )
{
void Graphics::drawcoloredtile(
const int x,
const int y,
const int t,
const int r,
const int g,
const int b
) {
SDL_Rect rect;
if (!INBOUNDS_VEC(t, tiles))
{
return;
}
setcolreal(getRGB(r,g,b));
SDL_Rect rect;
setRect(rect,x,y,tiles_rect.w,tiles_rect.h);
BlitSurfaceColoured(tiles[t],NULL, backBuffer, &rect, ct );
setcolreal(getRGB(r, g, b));
setRect(rect, x, y, tiles_rect.w, tiles_rect.h);
BlitSurfaceColoured(tiles[t], NULL, backBuffer, &rect, ct);
}