diff options
| author | crudelios <crudelios@gmail.com> | 2014-09-14 17:52:51 +0100 |
|---|---|---|
| committer | crudelios <crudelios@gmail.com> | 2014-10-10 12:27:06 +0100 |
| commit | 2d4b7e3f3f67f48ec2fb3d8eb8b2af3b70e4afcc (patch) | |
| tree | f81d5e738022be0234af2033badc51adef39ba49 /Source/Core/VideoBackends/Software/BPMemLoader.cpp | |
| parent | b7aed97508ba74116858a111030bbd5783a633cb (diff) | |
Reimplement Bounding Box calculation using the software renderer.
Diffstat (limited to 'Source/Core/VideoBackends/Software/BPMemLoader.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/BPMemLoader.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Software/BPMemLoader.cpp b/Source/Core/VideoBackends/Software/BPMemLoader.cpp index f2aa429c49..bf11258cb0 100644 --- a/Source/Core/VideoBackends/Software/BPMemLoader.cpp +++ b/Source/Core/VideoBackends/Software/BPMemLoader.cpp @@ -14,6 +14,7 @@ #include "VideoCommon/PixelEngine.h" #include "VideoCommon/TextureDecoder.h" +#include "VideoCommon/BoundingBox.h" #include "VideoCommon/VideoCommon.h" @@ -73,12 +74,12 @@ void SWBPWritten(int address, int newvalue) EfbCopy::CopyEfb(); break; case BPMEM_CLEARBBOX1: - PixelEngine::bbox[0] = newvalue >> 10; - PixelEngine::bbox[1] = newvalue & 0x3ff; + BoundingBox::coords[BoundingBox::LEFT] = newvalue >> 10; + BoundingBox::coords[BoundingBox::RIGHT] = newvalue & 0x3ff; break; case BPMEM_CLEARBBOX2: - PixelEngine::bbox[2] = newvalue >> 10; - PixelEngine::bbox[3] = newvalue & 0x3ff; + BoundingBox::coords[BoundingBox::TOP] = newvalue >> 10; + BoundingBox::coords[BoundingBox::BOTTOM] = newvalue & 0x3ff; break; case BPMEM_CLEAR_PIXEL_PERF: // TODO: I didn't test if the value written to this register affects the amount of cleared registers |
