mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
Fix code to comply with coding style
This commit is contained in:
@ -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)
|
||||
|
@ -40,7 +40,6 @@ extern int OSDChoice;
|
||||
|
||||
extern bool bLastFrameDumped;
|
||||
|
||||
|
||||
// Renderer really isn't a very good name for this class - it's more like "Misc".
|
||||
// The long term goal is to get rid of this class and replace it with others that make
|
||||
// more sense.
|
||||
@ -137,7 +136,6 @@ public:
|
||||
|
||||
static Common::Event s_screenshotCompleted;
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
static void CalculateTargetScale(int x, int y, int* scaledX, int* scaledY);
|
||||
|
Reference in New Issue
Block a user