summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/RenderBase.cpp
diff options
context:
space:
mode:
authorStevoisiak <Stevoisiak@gmail.com>2015-02-15 14:43:31 -0500
committerStevoisiak <Stevoisiak@gmail.com>2015-02-25 10:48:21 -0500
commit93b16a4a2d5f3e6d467d1315c461aff12852b26c (patch)
tree0993e6ce422ae33a850466e8da285421a462e79f /Source/Core/VideoCommon/RenderBase.cpp
parentb8edd8aedc75ae4e2abd8c5558af94e98c7bebcb (diff)
Formatting/Whitespace Cleanup
Various fixes to formatting and whitespace
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
-rw-r--r--Source/Core/VideoCommon/RenderBase.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp
index ccceb954dd..54f950ca63 100644
--- a/Source/Core/VideoCommon/RenderBase.cpp
+++ b/Source/Core/VideoCommon/RenderBase.cpp
@@ -120,7 +120,7 @@ void Renderer::RenderToXFB(u32 xfbAddr, const EFBRectangle& sourceRc, u32 fbWidt
if (g_ActiveConfig.bUseXFB)
{
- FramebufferManagerBase::CopyToXFB(xfbAddr, fbWidth, fbHeight, sourceRc,Gamma);
+ FramebufferManagerBase::CopyToXFB(xfbAddr, fbWidth, fbHeight, sourceRc, Gamma);
}
else
{
@@ -328,7 +328,6 @@ void Renderer::DrawDebugText()
if ((u32)OSDTime > Common::Timer::GetTimeMs())
{
-
const char* res_text = "";
switch (g_ActiveConfig.iEFBScale)
{
@@ -387,7 +386,7 @@ void Renderer::DrawDebugText()
std::string("Fog: ") + (g_ActiveConfig.bDisableFog ? "Disabled" : "Enabled"),
};
- enum { lines_count = sizeof(lines)/sizeof(*lines) };
+ enum { lines_count = sizeof(lines) / sizeof(*lines) };
// The latest changed setting in yellow
for (int i = 0; i != lines_count; ++i)
@@ -437,34 +436,34 @@ void Renderer::UpdateDrawRectangle(int backbuffer_width, int backbuffer_height)
// Update aspect ratio hack values
// Won't take effect until next frame
// Don't know if there is a better place for this code so there isn't a 1 frame delay
- if ( g_ActiveConfig.bWidescreenHack )
+ if (g_ActiveConfig.bWidescreenHack)
{
float source_aspect = use16_9 ? (16.0f / 9.0f) : (4.0f / 3.0f);
float target_aspect;
- switch ( g_ActiveConfig.iAspectRatio )
+ switch (g_ActiveConfig.iAspectRatio)
{
- case ASPECT_FORCE_16_9 :
+ case ASPECT_FORCE_16_9:
target_aspect = 16.0f / 9.0f;
break;
- case ASPECT_FORCE_4_3 :
+ case ASPECT_FORCE_4_3:
target_aspect = 4.0f / 3.0f;
break;
- case ASPECT_STRETCH :
+ case ASPECT_STRETCH:
target_aspect = WinWidth / WinHeight;
break;
- default :
+ default:
// ASPECT_AUTO == no hacking
target_aspect = source_aspect;
break;
}
float adjust = source_aspect / target_aspect;
- if ( adjust > 1 )
+ if (adjust > 1)
{
// Vert+
g_Config.fAspectRatioHackW = 1;
- g_Config.fAspectRatioHackH = 1/adjust;
+ g_Config.fAspectRatioHackH = 1 / adjust;
}
else
{