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:
Misa
2020-04-01 15:47:35 -07:00
committed by Ethan Lee
parent 5c60b8df5f
commit 6a28c5de30
3 changed files with 10 additions and 10 deletions

View File

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