summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/MainBase.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-01-23 02:51:46 -0500
committerLioncash <mathew1800@gmail.com>2017-01-23 03:53:38 -0500
commit5b461f50af74c2e89e2a2c92a4dfc2bb766fc52f (patch)
tree2e362149a7491d117d6d653799490c8e8087b093 /Source/Core/VideoCommon/MainBase.cpp
parenta2caa0d7336c8fd9ffad4fabc5a8d9c60129fdbc (diff)
VideoBackendBase: Convert EFBAccessType into an enum class
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/MainBase.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp
index 659eec31b3..cac970fff4 100644
--- a/Source/Core/VideoCommon/MainBase.cpp
+++ b/Source/Core/VideoCommon/MainBase.cpp
@@ -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;