X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fgaw%2Fgaw_sw.c;h=5e4619cbe15b2a48f24bfb8a305b22ce6731a2ab;hb=15a4548ff09afb37dd33786cafd50b060a64f840;hp=3df97f360a926a21791261a23f44d276fe69a22a;hpb=b0088adf036a53139f67ebf96f1bbb55abf199f4;p=retroray
diff --git a/src/gaw/gaw_sw.c b/src/gaw/gaw_sw.c
index 3df97f3..5e4619c 100644
--- a/src/gaw/gaw_sw.c
+++ b/src/gaw/gaw_sw.c
@@ -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: