diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2015-09-17 09:34:18 +0200 |
|---|---|---|
| committer | Markus Wick <degasus@users.noreply.github.com> | 2015-09-17 09:34:18 +0200 |
| commit | 7974b7074c3a77bd63b48ce6b0dbe937e57735ab (patch) | |
| tree | 951d16caf049ce10c6663ef32e5ac4302a7f9077 /Source/Core/VideoBackends/Software/Rasterizer.cpp | |
| parent | 1c17d3d6533d3191b89e23474064f0e7903007fd (diff) | |
| parent | a94300dd860e74b0f428e2c1f392ab975238a7a8 (diff) | |
Merge pull request #3051 from lioncash/mul
Rasterizer: Use multiplication instead of shifts in DrawTriangleFrontFace
Diffstat (limited to 'Source/Core/VideoBackends/Software/Rasterizer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/Rasterizer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoBackends/Software/Rasterizer.cpp b/Source/Core/VideoBackends/Software/Rasterizer.cpp index 4a04e02f7c..9b6b9f593a 100644 --- a/Source/Core/VideoBackends/Software/Rasterizer.cpp +++ b/Source/Core/VideoBackends/Software/Rasterizer.cpp @@ -360,13 +360,13 @@ void DrawTriangleFrontFace(OutputVertexData *v0, OutputVertexData *v1, OutputVer const s32 DY31 = Y3 - Y1; // Fixed-pos32 deltas - const s32 FDX12 = DX12 << 4; - const s32 FDX23 = DX23 << 4; - const s32 FDX31 = DX31 << 4; + const s32 FDX12 = DX12 * 16; + const s32 FDX23 = DX23 * 16; + const s32 FDX31 = DX31 * 16; - const s32 FDY12 = DY12 << 4; - const s32 FDY23 = DY23 << 4; - const s32 FDY31 = DY31 << 4; + const s32 FDY12 = DY12 * 16; + const s32 FDY23 = DY23 * 16; + const s32 FDY31 = DY31 * 16; // Bounding rectangle s32 minx = (std::min(std::min(X1, X2), X3) + 0xF) >> 4; |
