OSD: Add option to show display resolution

This commit is contained in:
Connor McLaughlin
2020-08-16 00:17:10 +10:00
parent 26aa627deb
commit 10a46a7fd8
10 changed files with 73 additions and 35 deletions

View File

@ -134,6 +134,12 @@ void GPU_HW::UpdateResolutionScale()
UpdateSettings();
}
std::tuple<u32, u32> GPU_HW::GetEffectiveDisplayResolution()
{
return std::make_tuple(m_crtc_state.display_vram_width * m_resolution_scale,
m_resolution_scale * m_crtc_state.display_vram_height);
}
void GPU_HW::PrintSettingsToLog()
{
Log_InfoPrintf("Resolution Scale: %u (%ux%u), maximum %u", m_resolution_scale, VRAM_WIDTH * m_resolution_scale,