fixing the fix

This commit is contained in:
aap 2020-04-25 00:47:40 +02:00
parent 13307f0a27
commit 1371a421e5
3 changed files with 5 additions and 5 deletions

View File

@ -135,7 +135,7 @@ Charset::flushBuffer(void)
}
void
Charset::printChar(uint32 c, int32 x, int32 y)
Charset::printChar(int32 c, int32 x, int32 y)
{
Camera *cam;
float recipZ;
@ -143,7 +143,7 @@ Charset::printChar(uint32 c, int32 x, int32 y)
RWDEVICE::Im2DVertex *vert;
uint16 *ix;
if((int32)c >= this->desc.count)
if(c >= this->desc.count)
return;
if(this->raster != lastRaster || numChars >= NUMCHARS)

View File

@ -19,7 +19,7 @@ struct Charset
void printBuffered(const char *str, int32 x, int32 y, bool32 hideSpaces);
static void flushBuffer(void);
private:
void printChar(uint32 c, int32 x, int32 y);
void printChar(int32 c, int32 x, int32 y);
};
}

View File

@ -287,11 +287,11 @@ putpixel(Canvas *canvas, Point3 p, Color c)
case DEPTHTEST_ALWAYS:
break;
case DEPTHTEST_GEQUAL:
if(p.z < (int)*z)
if((u32)p.z < *z)
return;
break;
case DEPTHTEST_GREATER:
if(p.z <= (int)*z)
if((u32)p.z <= *z)
return;
break;
}