X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx.c;h=a90da7adfe042af9d3251c1604b4722bc4a4579c;hp=46cc9ab8e33b246ec491b5e5d5827088f25aa9fa;hb=1723e332319e7732473814dfc168a13d0bafccb4;hpb=1bd8af3c3c9ec41903590d6ad24ff6313a5cc19b diff --git a/src/3dgfx.c b/src/3dgfx.c index 46cc9ab..a90da7a 100644 --- a/src/3dgfx.c +++ b/src/3dgfx.c @@ -98,9 +98,7 @@ void g3d_framebuffer(int width, int height, void *pixels) pfill_fb.width = width; pfill_fb.height = height; - st->vport[0] = st->vport[1] = 0; - st->vport[2] = width; - st->vport[3] = height; + g3d_viewport(0, 0, width, height); } void g3d_viewport(int x, int y, int w, int h) @@ -404,6 +402,7 @@ void g3d_draw_indexed(int prim, const struct g3d_vertex *varr, int varr_size, nfaces = (iarr ? iarr_size : varr_size) / vnum; for(j=0; j