softgpu: Remove z from DrawingCoords.

It's not really used much of anywhere, anyway.
This commit is contained in:
Unknown W. Brackets
2022-01-15 15:38:56 -08:00
parent bf2e060735
commit 02c5559393
4 changed files with 14 additions and 30 deletions

View File

@@ -139,16 +139,14 @@ DrawingCoords TransformUnit::ScreenToDrawing(const ScreenCoords& coords)
// TODO: What to do when offset > coord?
ret.x = ((s32)coords.x - gstate.getOffsetX16()) / 16;
ret.y = ((s32)coords.y - gstate.getOffsetY16()) / 16;
ret.z = coords.z;
return ret;
}
ScreenCoords TransformUnit::DrawingToScreen(const DrawingCoords& coords)
{
ScreenCoords TransformUnit::DrawingToScreen(const DrawingCoords &coords, u16 z) {
ScreenCoords ret;
ret.x = (u32)coords.x * 16 + gstate.getOffsetX16();
ret.y = (u32)coords.y * 16 + gstate.getOffsetY16();
ret.z = coords.z;
ret.z = z;
return ret;
}
@@ -719,7 +717,7 @@ bool TransformUnit::GetCurrentSimpleVertices(int count, std::vector<GPUDebugVert
}
vertices[i].x = drawPos.x;
vertices[i].y = drawPos.y;
vertices[i].z = drawPos.z;
vertices[i].z = screenPos.z;
}
if (gstate.vertType & GE_VTYPE_COL_MASK) {