Added support for viewport.

This commit is contained in:
luigi__ 2009-02-15 01:38:48 +00:00
parent 0e2532cc85
commit 40eaf9f5d6
1 changed files with 4 additions and 2 deletions

View File

@ -960,8 +960,10 @@ static void SoftRastRender()
vert.fcolor[2] /= vert.coord[3]; vert.fcolor[2] /= vert.coord[3];
//viewport transformation //viewport transformation
vert.coord[0] *= 256; vert.coord[0] *= gfx3d.viewport.width;
vert.coord[1] *= 192; vert.coord[0] += gfx3d.viewport.x;
vert.coord[1] *= gfx3d.viewport.height;
vert.coord[1] += gfx3d.viewport.y;
} }
} }