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

View file

@ -1792,8 +1792,6 @@ void ASSDrawCanvas::UpdateNonUniformTransformation()
unsigned vertices = backupcmds.total_vertices(); unsigned vertices = backupcmds.total_vertices();
double x, y; 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::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); agg::conv_transform<agg::path_storage, agg::trans_bilinear> transb(backupcmds, trans_b);
transb.rewind(0); transb.rewind(0);
@ -1802,19 +1800,7 @@ void ASSDrawCanvas::UpdateNonUniformTransformation()
transb.vertex(&x, &y); transb.vertex(&x, &y);
trans.move_to(x, y); trans.move_to(x, y);
} }
//}
/* else
{
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);
}
}
*/
trans.rewind(0); trans.rewind(0);
for (DrawCmdList::iterator iterate = cmds.begin(); iterate != cmds.end(); iterate++) for (DrawCmdList::iterator iterate = cmds.begin(); iterate != cmds.end(); iterate++)
{ {