mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Core: Move a global into a namespace
This commit is contained in:
parent
c0d157e6f6
commit
c756025902
4 changed files with 11 additions and 11 deletions
|
@ -431,7 +431,7 @@ void Renderer::UpdateDrawRectangle(int backbuffer_width, int backbuffer_height)
|
|||
// Don't know if there is a better place for this code so there isn't a 1 frame delay
|
||||
if (g_ActiveConfig.bWidescreenHack)
|
||||
{
|
||||
float source_aspect = VideoInterface::GetAspectRatio(g_aspect_wide);
|
||||
float source_aspect = VideoInterface::GetAspectRatio(Core::g_aspect_wide);
|
||||
float target_aspect;
|
||||
|
||||
switch (g_ActiveConfig.iAspectRatio)
|
||||
|
@ -485,7 +485,7 @@ void Renderer::UpdateDrawRectangle(int backbuffer_width, int backbuffer_height)
|
|||
Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(false);
|
||||
break;
|
||||
default:
|
||||
Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(g_aspect_wide);
|
||||
Ratio = (WinWidth / WinHeight) / VideoInterface::GetAspectRatio(Core::g_aspect_wide);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -521,7 +521,7 @@ void Renderer::UpdateDrawRectangle(int backbuffer_width, int backbuffer_height)
|
|||
Ratio = (4.0f / 3.0f) / VideoInterface::GetAspectRatio(false);
|
||||
break;
|
||||
default:
|
||||
Ratio = (!g_aspect_wide ? (4.0f / 3.0f) : (16.0f / 9.0f)) / VideoInterface::GetAspectRatio(g_aspect_wide);
|
||||
Ratio = (!Core::g_aspect_wide ? (4.0f / 3.0f) : (16.0f / 9.0f)) / VideoInterface::GetAspectRatio(Core::g_aspect_wide);
|
||||
break;
|
||||
}
|
||||
if (Ratio <= 1.0f)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue