cellScreenshot: fix overlay scaling (#9867)

* cellScreenshot: fix overlay scaling
This commit is contained in:
Megamouse 2021-03-01 00:00:49 +01:00 committed by GitHub
parent 48cd56acc2
commit 0b5c6350ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 10 deletions

View file

@ -248,9 +248,7 @@ std::unique_ptr<gs_frame> gui_application::get_gs_frame()
{
extern const std::unordered_map<video_resolution, std::pair<int, int>, value_hash<video_resolution>> g_video_out_resolution_map;
const auto size = g_video_out_resolution_map.at(g_cfg.video.resolution);
int w = size.first;
int h = size.second;
auto [w, h] = g_video_out_resolution_map.at(g_cfg.video.resolution);
if (m_gui_settings->GetValue(gui::gs_resize).toBool())
{