X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2F3dgfx%2Fpolytmpl.h;h=62692fac7407d5acdac8ec7dddb12a2d65e4aea0;hb=390d3d37953897e5bd64fe7f1fe88e6a94c7e5dc;hp=01bbd01f4a6c71c3fc7eddeb9d084375049c0dca;hpb=659ca11730af4e7e5b1b350efa4198a9c42de287;p=dosdemo diff --git a/src/3dgfx/polytmpl.h b/src/3dgfx/polytmpl.h index 01bbd01..62692fa 100644 --- a/src/3dgfx/polytmpl.h +++ b/src/3dgfx/polytmpl.h @@ -13,7 +13,7 @@ static uint32_t SCANEDGE(struct pvertex *v0, struct pvertex *v1, struct pvertex int32_t u, v, du, dv, uslope, vslope; #endif #ifdef ZBUF - int z, dz, zslope; + int32_t z, dz, zslope; #endif int32_t start_idx, end_idx; @@ -101,7 +101,8 @@ void POLYFILL(struct pvertex *pv, int nverts) #if defined(GOURAUD) || defined(TEXMAP) || defined(ZBUF) int mid; int32_t dx, tmp; -#else +#endif +#if !defined(GOURAUD) && !defined(TEXMAP) /* flat version, just pack the color now */ color = G3D_PACK_RGB(pv[0].r, pv[0].g, pv[0].b); #endif @@ -115,7 +116,7 @@ void POLYFILL(struct pvertex *pv, int nverts) int32_t u, v, du, dv, uslope, vslope; #endif #ifdef ZBUF - int z, dz, zslope; + int32_t z, dz, zslope; #endif for(i=1; i