diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-05-20 16:20:21 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-05-20 16:27:16 -0400 |
| commit | ba94ffd51d3aa0ebb6a89c11825bf0981d0c1299 (patch) | |
| tree | 48af53ab74e41885d14ad0bb049d62728c9e3a41 /Source/Core/VideoCommon/VideoBackendBase.cpp | |
| parent | 42849525387cd88a70707a6445046e3c5cc36caa (diff) | |
VideoBackendBase: Include parameter names in member function declarations
Given this is a base class, we should clearly state what the parameters
to the functions in its exposed interface actually mean or represent.
This avoids needing to hunt for the definition of the functions in cpp
files.
While we're at it, normalize said parameter names so they follow our
naming guidelines.
Diffstat (limited to 'Source/Core/VideoCommon/VideoBackendBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index 9315d1d7b3..77ffb294ff 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -74,7 +74,7 @@ void VideoBackendBase::Video_ExitLoop() } // Run from the CPU thread (from VideoInterface.cpp) -void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, +void VideoBackendBase::Video_BeginField(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks) { if (m_initialized && g_renderer && !g_ActiveConfig.bImmediateXFB) @@ -85,15 +85,15 @@ void VideoBackendBase::Video_BeginField(u32 xfbAddr, u32 fbWidth, u32 fbStride, e.time = ticks; e.type = AsyncRequests::Event::SWAP_EVENT; - e.swap_event.xfbAddr = xfbAddr; - e.swap_event.fbWidth = fbWidth; - e.swap_event.fbStride = fbStride; - e.swap_event.fbHeight = fbHeight; + e.swap_event.xfbAddr = xfb_addr; + e.swap_event.fbWidth = fb_width; + e.swap_event.fbStride = fb_stride; + e.swap_event.fbHeight = fb_height; AsyncRequests::GetInstance()->PushEvent(e, false); } } -u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 InputData) +u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 data) { if (!g_ActiveConfig.bEFBAccessEnable || x >= EFB_WIDTH || y >= EFB_HEIGHT) { @@ -106,7 +106,7 @@ u32 VideoBackendBase::Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 Inpu 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.data = data; e.efb_poke.x = x; e.efb_poke.y = y; AsyncRequests::GetInstance()->PushEvent(e, false); |
