mirror of
https://github.com/aap/librw.git
synced 2024-11-24 12:45:43 +00:00
fixing the fix
This commit is contained in:
parent
13307f0a27
commit
1371a421e5
@ -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)
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user