WindowInfo: Add surface_scale field

This commit is contained in:
Connor McLaughlin
2020-07-01 00:35:19 +10:00
parent e374853cf5
commit bf08385051
7 changed files with 38 additions and 35 deletions

View File

@ -767,6 +767,7 @@ void LibretroHostInterface::SwitchToHardwareRenderer()
wi.display_connection = &g_libretro_host_interface.m_hw_render_callback;
wi.surface_width = avi.geometry.base_width;
wi.surface_height = avi.geometry.base_height;
wi.surface_scale = 1.0f;
if (!display || !display->CreateRenderDevice(wi, {}, g_libretro_host_interface.m_settings.gpu_use_debug_device))
{
Log_ErrorPrintf("Failed to create hardware host display");