assdraw: delete some commented code

Originally committed to SVN as r6870.
This commit is contained in:
Thomas Goyne 2012-05-26 16:54:39 +00:00
parent 4b662d74f4
commit 618c4b8afa
1 changed files with 7 additions and 21 deletions

View File

@ -1792,29 +1792,15 @@ void ASSDrawCanvas::UpdateNonUniformTransformation()
unsigned vertices = backupcmds.total_vertices();
double x, y;
//if (draw_mode == MODE_NUT_BILINEAR)
//{
agg::trans_bilinear trans_b(rectbound[0].x, rectbound[0].y, rectbound[2].x, rectbound[2].y, bound);
agg::conv_transform<agg::path_storage, agg::trans_bilinear> transb(backupcmds, trans_b);
transb.rewind(0);
for (int i = 0; i < vertices; i++)
{
transb.vertex(&x, &y);
trans.move_to(x, y);
}
//}
/* else
agg::trans_bilinear trans_b(rectbound[0].x, rectbound[0].y, rectbound[2].x, rectbound[2].y, bound);
agg::conv_transform<agg::path_storage, agg::trans_bilinear> transb(backupcmds, trans_b);
transb.rewind(0);
for (int i = 0; i < vertices; i++)
{
agg::trans_perspective trans_p(rectbound[0].x, rectbound[0].y, rectbound[2].x, rectbound[2].y, bound);
agg::conv_transform<agg::path_storage, agg::trans_perspective> transp(backupcmds, trans_p);
transp.rewind(0);
for (int i = 0; i < vertices; i++)
{
transp.vertex(&x, &y);
trans.move_to(x, y);
}
transb.vertex(&x, &y);
trans.move_to(x, y);
}
*/
trans.rewind(0);
for (DrawCmdList::iterator iterate = cmds.begin(); iterate != cmds.end(); iterate++)
{