Treat invalid aspect ratio setting values as Auto
This commit is contained in:
parent
dc08b73db1
commit
a2404c42a1
|
@ -307,9 +307,6 @@ void Renderer::DrawDebugText()
|
||||||
const char* ar_text = "";
|
const char* ar_text = "";
|
||||||
switch (g_ActiveConfig.aspect_mode)
|
switch (g_ActiveConfig.aspect_mode)
|
||||||
{
|
{
|
||||||
case AspectMode::Auto:
|
|
||||||
ar_text = "Auto";
|
|
||||||
break;
|
|
||||||
case AspectMode::Stretch:
|
case AspectMode::Stretch:
|
||||||
ar_text = "Stretch";
|
ar_text = "Stretch";
|
||||||
break;
|
break;
|
||||||
|
@ -319,6 +316,10 @@ void Renderer::DrawDebugText()
|
||||||
case AspectMode::AnalogWide:
|
case AspectMode::AnalogWide:
|
||||||
ar_text = "Force 16:9";
|
ar_text = "Force 16:9";
|
||||||
break;
|
break;
|
||||||
|
case AspectMode::Auto:
|
||||||
|
default:
|
||||||
|
ar_text = "Auto";
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* const efbcopy_text = g_ActiveConfig.bSkipEFBCopyToRam ? "to Texture" : "to RAM";
|
const char* const efbcopy_text = g_ActiveConfig.bSkipEFBCopyToRam ? "to Texture" : "to RAM";
|
||||||
|
@ -441,6 +442,7 @@ void Renderer::UpdateDrawRectangle()
|
||||||
target_aspect = AspectToWidescreen(VideoInterface::GetAspectRatio());
|
target_aspect = AspectToWidescreen(VideoInterface::GetAspectRatio());
|
||||||
break;
|
break;
|
||||||
case AspectMode::Auto:
|
case AspectMode::Auto:
|
||||||
|
default:
|
||||||
target_aspect = source_aspect;
|
target_aspect = source_aspect;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue