diff options
| author | crudelios <crudelios@gmail.com> | 2014-01-26 13:21:22 +0000 |
|---|---|---|
| committer | crudelios <crudelios@gmail.com> | 2014-01-26 13:21:22 +0000 |
| commit | 9b6c6fa9e411cf78b6b2951cbb3467bb2e27ab50 (patch) | |
| tree | 2038eeeda14872f6a1ba37c25c936c4ec1120525 /Source/Core/VideoCommon/VertexLoader.cpp | |
| parent | d3fd0eddbbe423edddc1abb6489ccc7369c8b892 (diff) | |
BBox: Changed the rounding again, the old one fixed Paper Mario but had bugs in Mickey's Magical Mirror. This change fixes the glitches in both games.
Also fixed some compiler warnings.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp index 2f8559bebb..45bfec384a 100644 --- a/Source/Core/VideoCommon/VertexLoader.cpp +++ b/Source/Core/VideoCommon/VertexLoader.cpp @@ -254,8 +254,8 @@ void LOADERDECL UpdateBoundingBox() } // Convert to screen space and add the point to the list - round like the real hardware - s_bbox_points[s_bbox_currPoint].x = (((s32) (0.5f + (16.0f * (screenPoint[0] * xfregs.viewport.wd + (xfregs.viewport.xOrig - 342.0f))))) - 9) >> 4; - s_bbox_points[s_bbox_currPoint].y = (((s32) (0.5f + (16.0f * (screenPoint[1] * xfregs.viewport.ht + (xfregs.viewport.yOrig - 342.0f))))) - 9) >> 4; + s_bbox_points[s_bbox_currPoint].x = (((s32) (0.5f + (16.0f * (screenPoint[0] * xfregs.viewport.wd + (xfregs.viewport.xOrig - 342.0f))))) + 3) >> 4; + s_bbox_points[s_bbox_currPoint].y = (((s32) (0.5f + (16.0f * (screenPoint[1] * xfregs.viewport.ht + (xfregs.viewport.yOrig - 342.0f))))) + 3) >> 4; s_bbox_points[s_bbox_currPoint].z = screenPoint[2]; // Update point list for primitive |
