summaryrefslogtreecommitdiff
path: root/plugins/peopsxgl/prim.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/peopsxgl/prim.c')
-rwxr-xr-xplugins/peopsxgl/prim.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/peopsxgl/prim.c b/plugins/peopsxgl/prim.c
index 6a06a9be..0c78145d 100755
--- a/plugins/peopsxgl/prim.c
+++ b/plugins/peopsxgl/prim.c
@@ -3105,7 +3105,7 @@ void primPolyF4(unsigned char *baseAddr)
lx3 = sgpuData[8];
ly3 = sgpuData[9];
- if(offset4()) return;
+ if(offset4(baseAddr)) return;
bDrawTextured = FALSE;
bDrawSmoothShaded = FALSE;
@@ -3214,7 +3214,7 @@ void primPolyG4(unsigned char * baseAddr)
lx3 = sgpuData[14];
ly3 = sgpuData[15];
- if(offset4()) return;
+ if(offset4(baseAddr)) return;
bDrawTextured = FALSE;
bDrawSmoothShaded = TRUE;
@@ -3430,7 +3430,7 @@ void primPolyFT3(unsigned char * baseAddr)
lx2 = sgpuData[10];
ly2 = sgpuData[11];
- if(offset3()) return;
+ if(offset3(baseAddr)) return;
// do texture UV coordinates stuff
gl_ux[0]=gl_ux[3]=baseAddr[8];//gpuData[2]&0xff;
@@ -3868,7 +3868,7 @@ void primPolyFT4(unsigned char * baseAddr)
lx3 = sgpuData[14];
ly3 = sgpuData[15];
- if(offset4()) return;
+ if(offset4(baseAddr)) return;
gl_vy[0]=baseAddr[9];//((gpuData[2]>>8)&0xff);
gl_vy[1]=baseAddr[17];//((gpuData[4]>>8)&0xff);
@@ -3953,7 +3953,7 @@ void primPolyGT3(unsigned char *baseAddr)
lx2 = sgpuData[14];
ly2 = sgpuData[15];
- if(offset3()) return;
+ if(offset3(baseAddr)) return;
// do texture stuff
gl_ux[0]=gl_ux[3]=baseAddr[8];//gpuData[2]&0xff;
@@ -4062,7 +4062,7 @@ void primPolyG3(unsigned char *baseAddr)
lx2 = sgpuData[10];
ly2 = sgpuData[11];
- if(offset3()) return;
+ if(offset3(baseAddr)) return;
bDrawTextured = FALSE;
bDrawSmoothShaded = TRUE;
@@ -4109,7 +4109,7 @@ void primPolyGT4(unsigned char *baseAddr)
lx3 = sgpuData[20];
ly3 = sgpuData[21];
- if(offset4()) return;
+ if(offset4(baseAddr)) return;
// do texture stuff
gl_ux[0]=baseAddr[8];//gpuData[2]&0xff;
@@ -4227,7 +4227,7 @@ void primPolyF3(unsigned char *baseAddr)
lx2 = sgpuData[6];
ly2 = sgpuData[7];
- if(offset3()) return;
+ if(offset3(baseAddr)) return;
bDrawTextured = FALSE;
bDrawSmoothShaded = FALSE;
@@ -4318,7 +4318,7 @@ void primLineGEx(unsigned char *baseAddr)
ly1 = (short)((gpuData[i]>>16) & 0xffff);
lx1 = (short)(gpuData[i] & 0xffff);
- if(offsetline()) bDraw=FALSE; else bDraw=TRUE;
+ if(offsetline(baseAddr)) bDraw=FALSE; else bDraw=TRUE;
if (bDraw && ((lx0 != lx1) || (ly0 != ly1)))
{
@@ -4367,7 +4367,7 @@ void primLineG2(unsigned char *baseAddr)
if((lx0 == lx1) && (ly0 == ly1)) return;
- if(offsetline()) return;
+ if(offsetline(baseAddr)) return;
SetRenderState(gpuData[0]);
SetRenderMode(gpuData[0], FALSE);
@@ -4445,7 +4445,7 @@ void primLineFEx(unsigned char *baseAddr)
ly1 = (short)((gpuData[i]>>16) & 0xffff);
lx1 = (short)(gpuData[i] & 0xffff);
- if(!offsetline())
+ if(!offsetline(baseAddr))
{
if(iOffscreenDrawing)
{
@@ -4481,7 +4481,7 @@ void primLineF2(unsigned char *baseAddr)
lx1 = sgpuData[4];
ly1 = sgpuData[5];
- if(offsetline()) return;
+ if(offsetline(baseAddr)) return;
bDrawTextured = FALSE;
bDrawSmoothShaded = FALSE;