diff options
| author | unknown <delvallejacobo@gmail.com> | 2015-07-29 19:48:08 -0600 |
|---|---|---|
| committer | mirrorbender <mirrorbender@gmail.com> | 2015-07-31 20:00:36 -0400 |
| commit | 739ede22423d8ed755936fc140b3d0feddfaf800 (patch) | |
| tree | 721b74ddcf38472ef423ad665e635820ff4b38a8 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 0faba3b01806df0ea74e01257d3cc48ea5538771 (diff) | |
Fix code to comply with coding style
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 77ba795d48..e116a38443 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -46,7 +46,6 @@ #include "VideoCommon/VideoConfig.h" #include "VideoCommon/XFMemory.h" - // TODO: Move these out of here. int frameCount; int OSDChoice; @@ -478,17 +477,18 @@ void Renderer::UpdateDrawRectangle(int backbuffer_width, int backbuffer_height) // The rendering window aspect ratio as a proportion of the 4:3 or 16:9 ratio float Ratio; switch (g_ActiveConfig.iAspectRatio) - { - case ASPECT_ANALOG_WIDE: - Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(true); - break; - case ASPECT_ANALOG: - Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(false); - break; - default: - Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(g_aspect_wide); - break; + { + case ASPECT_ANALOG_WIDE: + Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(true); + break; + case ASPECT_ANALOG: + Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(false); + break; + default: + Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(g_aspect_wide); + break; } + if (g_ActiveConfig.iAspectRatio != ASPECT_STRETCH) { if (Ratio > 1.0f) |
