diff options
| author | Markus Wick <markus@selfnet.de> | 2015-09-03 09:40:24 +0200 |
|---|---|---|
| committer | Markus Wick <markus@selfnet.de> | 2015-09-03 09:40:24 +0200 |
| commit | ad978122d94cf7b87d6f37f4569688ccd15287c7 (patch) | |
| tree | 2cf080d489b1b640c54026602b2386c34c7c7779 /Source/Core/VideoCommon/BPStructs.cpp | |
| parent | a1538a30ef1653c2af5803914eb9584e9723ce7a (diff) | |
| parent | 5a32c3fba49cbe62f1f6447d681ac6717c032f99 (diff) | |
Merge pull request #2942 from booto/xfb_lines
VideoCommon: xfb height calculation adjusted
Diffstat (limited to 'Source/Core/VideoCommon/BPStructs.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/BPStructs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/BPStructs.cpp b/Source/Core/VideoCommon/BPStructs.cpp index b4d3cce959..cacb005143 100644 --- a/Source/Core/VideoCommon/BPStructs.cpp +++ b/Source/Core/VideoCommon/BPStructs.cpp @@ -241,7 +241,7 @@ static void BPWritten(const BPCmd& bp) else yScale = (float)bpmem.dispcopyyscale / 256.0f; - float num_xfb_lines = ((bpmem.copyTexSrcWH.y + 1.0f) * yScale); + float num_xfb_lines = 1.0f + bpmem.copyTexSrcWH.y * yScale; u32 height = static_cast<u32>(num_xfb_lines); if (height > MAX_XFB_HEIGHT) |
