mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 21:28:51 +00:00
EfbInterface: Change out parameters on getters to return by value
This commit is contained in:
parent
023eb34247
commit
33288c4569
4 changed files with 50 additions and 57 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue