X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=dosdemo;a=blobdiff_plain;f=src%2F3dgfx.c;h=673122d07fc29f66f2b7e76956736fe2cf2b72b9;hp=17ddd939155f1479dbd8af97c040605c31d9931d;hb=8cee0ffb00cce3d81487f1161286ac299db7d044;hpb=9ed338a5e703fc819cede5cb797e82e08046ac17 diff --git a/src/3dgfx.c b/src/3dgfx.c index 17ddd93..673122d 100644 --- a/src/3dgfx.c +++ b/src/3dgfx.c @@ -470,7 +470,7 @@ void g3d_draw_indexed(int prim, const struct g3d_vertex *varr, int varr_size, int32_t ay = pv[1].y - pv[0].y; int32_t bx = pv[2].x - pv[0].x; int32_t by = pv[2].y - pv[0].y; - int32_t cross_z = ax * (by >> 8) - ay * (bx >> 8); + int32_t cross_z = (ax >> 4) * (by >> 4) - (ay >> 4) * (bx >> 4); int sign = (cross_z >> 31) & 1; if(!(sign ^ st->frontface)) {