mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove unused arguments from Graphics::drawtile2()
The 'r', 'g', and 'b' arguments do absolutely nothing. Except unlike Graphics::drawtile(), there's only one version of Graphics::drawtile2(), so just remove those args and update callers.
This commit is contained in:
parent
5c60b8df5f
commit
6a28c5de30
3 changed files with 10 additions and 10 deletions
|
@ -563,7 +563,7 @@ void Graphics::drawtile( int x, int y, int t )
|
|||
}
|
||||
|
||||
|
||||
void Graphics::drawtile2( int x, int y, int t, int r, int g, int b )
|
||||
void Graphics::drawtile2( int x, int y, int t )
|
||||
{
|
||||
SDL_Rect rect = { Sint16(x), Sint16(y), tiles_rect.w, tiles_rect.h };
|
||||
BlitSurfaceStandard(tiles2[t], NULL, backBuffer, &rect);
|
||||
|
|
|
@ -161,7 +161,7 @@ public:
|
|||
void drawbackground(int t);
|
||||
void drawtile3( int x, int y, int t, int off );
|
||||
void drawentcolours( int x, int y, int t);
|
||||
void drawtile2( int x, int y, int t, int r, int g, int b );
|
||||
void drawtile2( int x, int y, int t );
|
||||
void drawtile( int x, int y, int t );
|
||||
void drawtowertile( int x, int y, int t );
|
||||
void drawtowertile3( int x, int y, int t, int off );
|
||||
|
|
|
@ -2312,7 +2312,7 @@ void editorrender()
|
|||
for (int i = 0; i < 40; i++)
|
||||
{
|
||||
temp=ed.contents[i + (ed.levx*40) + ed.vmult[j+(ed.levy*30)]];
|
||||
if(temp>0) graphics.drawtile2(i*8,j*8,temp,0,0,0);
|
||||
if(temp>0) graphics.drawtile2(i*8,j*8,temp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2751,11 +2751,11 @@ void editorrender()
|
|||
{
|
||||
for(int i=0; i<40; i++)
|
||||
{
|
||||
graphics.drawtile2(i*8,0-t2,(temp+1200+i)%1200,0,0,0);
|
||||
graphics.drawtile2(i*8,8-t2,(temp+1200+40+i)%1200,0,0,0);
|
||||
graphics.drawtile2(i*8,16-t2,(temp+1200+80+i)%1200,0,0,0);
|
||||
graphics.drawtile2(i*8,24-t2,(temp+1200+120+i)%1200,0,0,0);
|
||||
graphics.drawtile2(i*8,32-t2,(temp+1200+160+i)%1200,0,0,0);
|
||||
graphics.drawtile2(i*8,0-t2,(temp+1200+i)%1200);
|
||||
graphics.drawtile2(i*8,8-t2,(temp+1200+40+i)%1200);
|
||||
graphics.drawtile2(i*8,16-t2,(temp+1200+80+i)%1200);
|
||||
graphics.drawtile2(i*8,24-t2,(temp+1200+120+i)%1200);
|
||||
graphics.drawtile2(i*8,32-t2,(temp+1200+160+i)%1200);
|
||||
}
|
||||
}
|
||||
//Highlight our little block
|
||||
|
@ -2776,7 +2776,7 @@ void editorrender()
|
|||
}
|
||||
else
|
||||
{
|
||||
graphics.drawtile2(45,45-t2,ed.dmtile,0,0,0);
|
||||
graphics.drawtile2(45,45-t2,ed.dmtile);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -2792,7 +2792,7 @@ void editorrender()
|
|||
}
|
||||
else
|
||||
{
|
||||
graphics.drawtile2(45,12,ed.dmtile,0,0,0);
|
||||
graphics.drawtile2(45,12,ed.dmtile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue