mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VideoBackendBase: Convert EFBAccessType into an enum class
This commit is contained in:
parent
a2caa0d733
commit
5b461f50af
12 changed files with 75 additions and 53 deletions
|
@ -72,11 +72,11 @@ u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 Inpu
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (type == POKE_COLOR || type == POKE_Z)
|
||||
if (type == EFBAccessType::PokeColor || type == EFBAccessType::PokeZ)
|
||||
{
|
||||
AsyncRequests::Event e;
|
||||
e.type = type == POKE_COLOR ? AsyncRequests::Event::EFB_POKE_COLOR :
|
||||
AsyncRequests::Event::EFB_POKE_Z;
|
||||
e.type = type == EFBAccessType::PokeColor ? AsyncRequests::Event::EFB_POKE_COLOR :
|
||||
AsyncRequests::Event::EFB_POKE_Z;
|
||||
e.time = 0;
|
||||
e.efb_poke.data = InputData;
|
||||
e.efb_poke.x = x;
|
||||
|
@ -88,8 +88,8 @@ u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 Inpu
|
|||
{
|
||||
AsyncRequests::Event e;
|
||||
u32 result;
|
||||
e.type = type == PEEK_COLOR ? AsyncRequests::Event::EFB_PEEK_COLOR :
|
||||
AsyncRequests::Event::EFB_PEEK_Z;
|
||||
e.type = type == EFBAccessType::PeekColor ? AsyncRequests::Event::EFB_PEEK_COLOR :
|
||||
AsyncRequests::Event::EFB_PEEK_Z;
|
||||
e.time = 0;
|
||||
e.efb_peek.x = x;
|
||||
e.efb_peek.y = y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue