X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgaw%2Fgaw_sw.c;h=7258d4558124c3cfde639d79dfa9db2df31b20c3;hb=HEAD;hp=de96cabffaf4f546be55743a214110d486bf52a5;hpb=7fccf8b3543c8cdb993252f0cf9a6b9ed826408e;p=retroray diff --git a/src/gaw/gaw_sw.c b/src/gaw/gaw_sw.c index de96cab..7258d45 100644 --- a/src/gaw/gaw_sw.c +++ b/src/gaw/gaw_sw.c @@ -1,5 +1,5 @@ /* -Deep Runner - 6dof shooter game for the SGI O2. +RetroRay - integrated standalone vintage modeller/renderer Copyright (C) 2023 John Tsiombikas This program is free software: you can redistribute it and/or modify @@ -15,10 +15,12 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include #include #include "gaw.h" #include "gawswtnl.h" #include "polyfill.h" +#include "../util.h" static struct pimage textures[MAX_TEXTURES]; @@ -319,8 +321,7 @@ void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum) for(i=0; ivport[2] + ST->vport[0]; - v[i].y = (v[i].y * 0.5f + 0.5f) * (float)ST->vport[3] + ST->vport[1]; - v[i].y = pfill_fb.height - v[i].y - 1; + v[i].y = (v[i].y * -0.5f + 0.5f) * (float)ST->vport[3] + ST->vport[1] - 1; /* convert pos to 24.8 fixed point */ pv[i].x = cround64(v[i].x * 256.0f); @@ -362,6 +363,7 @@ void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum) break; case GAW_LINES: + draw_line(pv); break; default: