mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01: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:
parent
1b236d5ec7
commit
9a637d0c0f
1 changed files with 13 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue