summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/EfbInterface.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-04-16 00:47:46 +1000
committerStenzek <stenzek@gmail.com>2019-04-21 14:28:14 +1000
commitf8c1ba409cdfc41e60d27b0fc002a8fd79f9c73e (patch)
treec3814adea3fb269649fd18e1afd3c8764be5c491 /Source/Core/VideoBackends/Software/EfbInterface.cpp
parent6ea43235d54a18b70529cb6d0d740e0f8f9c34ea (diff)
Replace EFBRectangle/TargetRectangle with MathUtil::Rectangle
Diffstat (limited to 'Source/Core/VideoBackends/Software/EfbInterface.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/EfbInterface.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/Core/VideoBackends/Software/EfbInterface.cpp b/Source/Core/VideoBackends/Software/EfbInterface.cpp
index bb3cfeda90..8eebb375d3 100644
--- a/Source/Core/VideoBackends/Software/EfbInterface.cpp
+++ b/Source/Core/VideoBackends/Software/EfbInterface.cpp
@@ -549,8 +549,8 @@ u8* GetPixelPointer(u16 x, u16 y, bool depth)
return &efb[GetColorOffset(x, y)];
}
-void EncodeXFB(u8* xfb_in_ram, u32 memory_stride, const EFBRectangle& source_rect, float y_scale,
- float gamma)
+void EncodeXFB(u8* xfb_in_ram, u32 memory_stride, const MathUtil::Rectangle<int>& source_rect,
+ float y_scale, float gamma)
{
if (!xfb_in_ram)
{
@@ -628,8 +628,9 @@ void EncodeXFB(u8* xfb_in_ram, u32 memory_stride, const EFBRectangle& source_rec
src_ptr += memory_stride;
}
- auto dest_rect = EFBRectangle{source_rect.left, source_rect.top, source_rect.right,
- static_cast<int>(static_cast<float>(source_rect.bottom) * y_scale)};
+ auto dest_rect =
+ MathUtil::Rectangle<int>{source_rect.left, source_rect.top, source_rect.right,
+ static_cast<int>(static_cast<float>(source_rect.bottom) * y_scale)};
const std::size_t destination_size = dest_rect.GetWidth() * dest_rect.GetHeight() * 2;
static std::vector<yuv422_packed> destination;