VideoBackends: Store a backbuffer 'scale'

This is a scaling factor, used for hi-dpi configurations.
This commit is contained in:
Stenzek
2019-01-19 00:35:00 +10:00
parent e03b8e899e
commit c9c0b85056
15 changed files with 26 additions and 17 deletions

View File

@ -147,7 +147,8 @@ bool VideoBackend::Initialize(const WindowSystemInfo& wsi)
}
// internal interfaces
g_renderer = std::make_unique<Renderer>(backbuffer_width, backbuffer_height);
g_renderer =
std::make_unique<Renderer>(backbuffer_width, backbuffer_height, wsi.render_surface_scale);
g_shader_cache = std::make_unique<VideoCommon::ShaderCache>();
g_texture_cache = std::make_unique<TextureCache>();
g_vertex_manager = std::make_unique<VertexManager>();