summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/BPMemLoader.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2014-10-13 15:57:11 +1100
committerskidau <skidau@gmail.com>2014-10-13 15:57:11 +1100
commit9551650c42d8e256043a5783ba3b7b3aa18e350d (patch)
treef30a28dd869b18a02b01e6b5a59d2ecb07fe9a04 /Source/Core/VideoBackends/Software/BPMemLoader.cpp
parent01f1768c5560bae74f5a3f527a591b17bf60a9cf (diff)
parent1e3b9ecdc143ec9a45fb6a4df3f26578e88ec371 (diff)
Merge pull request #1095 from crudelios/sw-bbox
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.cpp9
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..74e257e875 100644
--- a/Source/Core/VideoBackends/Software/BPMemLoader.cpp
+++ b/Source/Core/VideoBackends/Software/BPMemLoader.cpp
@@ -12,6 +12,7 @@
#include "VideoBackends/Software/Rasterizer.h"
#include "VideoBackends/Software/Tev.h"
+#include "VideoCommon/BoundingBox.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/TextureDecoder.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