diff options
author | eray orçunus <erayorcunus@gmail.com> | 2020-07-22 23:31:06 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2020-07-22 23:31:06 +0200 |
commit | 7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf (patch) | |
tree | 9126974a1c8bfa8ac8f9f3879fb63edfe7320238 /src/render | |
parent | Merge pull request #659 from erorcun/master (diff) | |
download | re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.gz re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.bz2 re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.lz re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.xz re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.tar.zst re3-7e32c603fc0f9a7ec0f3fc1ab224b3b20c769eaf.zip |
Diffstat (limited to 'src/render')
-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 d02ecec5..88d412c9 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -857,9 +857,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) @@ -904,7 +904,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; } @@ -940,7 +940,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; } |