X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgaw%2Fgaw_sw.c;h=5e4619cbe15b2a48f24bfb8a305b22ce6731a2ab;hb=15a4548ff09afb37dd33786cafd50b060a64f840;hp=de96cabffaf4f546be55743a214110d486bf52a5;hpb=7fccf8b3543c8cdb993252f0cf9a6b9ed826408e;p=retroray diff --git a/src/gaw/gaw_sw.c b/src/gaw/gaw_sw.c index de96cab..5e4619c 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,6 +15,7 @@ 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" @@ -319,8 +320,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 +362,7 @@ void gaw_swtnl_drawprim(int prim, struct vertex *v, int vnum) break; case GAW_LINES: + draw_line(pv); break; default: