diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-21 04:59:31 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-22 14:19:22 +0200 |
commit | f40f44b14e028c4bb2bee2e898c210e3f41b20bb (patch) | |
tree | f66810ab48dc09fd116db6d7e81822c6f760444f /src/render/Renderer.cpp | |
parent | fixed COcclusion (diff) | |
download | re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.gz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.bz2 re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.lz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.xz re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.tar.zst re3-f40f44b14e028c4bb2bee2e898c210e3f41b20bb.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Renderer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 329a8c9a..bd8545ee 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -922,9 +922,9 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL // prestep x1 and x2 to next integer y deltaA = CalcNewDelta(&poly[a1], &poly[a2]); - xA = deltaA * (ceilf(poly[a1].y) - poly[a1].y) + poly[a1].x; + xA = deltaA * (Ceil(poly[a1].y) - poly[a1].y) + poly[a1].x; deltaB = CalcNewDelta(&poly[b1], &poly[b2]); - xB = deltaB * (ceilf(poly[b1].y) - poly[b1].y) + poly[b1].x; + xB = deltaB * (Ceil(poly[b1].y) - poly[b1].y) + poly[b1].x; if(y != yend){ if(deltaB < 0.0f && (int)xB < xstart) @@ -969,7 +969,7 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL xstart = poly[b1].x; }while(y == (int)poly[b2].y); deltaB = CalcNewDelta(&poly[b1], &poly[b2]); - xB = deltaB * (ceilf(poly[b1].y) - poly[b1].y) + poly[b1].x; + xB = deltaB * (Ceil(poly[b1].y) - poly[b1].y) + poly[b1].x; if(deltaB < 0.0f && (int)xB < xstart) xstart = xB; } @@ -1005,7 +1005,7 @@ CRenderer::ScanSectorPoly(RwV2d *poly, int32 numVertices, void (*scanfunc)(CPtrL xend = poly[a1].x; }while(y == (int)poly[a2].y); deltaA = CalcNewDelta(&poly[a1], &poly[a2]); - xA = deltaA * (ceilf(poly[a1].y) - poly[a1].y) + poly[a1].x; + xA = deltaA * (Ceil(poly[a1].y) - poly[a1].y) + poly[a1].x; if(deltaA >= 0.0f && (int)xA > xend) xend = xA; } |