EfbInterface: Change out parameters on getters to return by value

This commit is contained in:
Lioncash
2016-09-21 18:53:13 -04:00
parent 023eb34247
commit 33288c4569
4 changed files with 50 additions and 57 deletions

View File

@ -176,8 +176,7 @@ u32 SWRenderer::AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData)
}
case PEEK_COLOR:
{
u32 color = 0;
EfbInterface::GetColor(x, y, (u8*)&color);
const u32 color = EfbInterface::GetColor(x, y);
// rgba to argb
value = (color >> 8) | (color & 0xff) << 24;