Fix progress bar look on HiDPI displays (#13055)

This commit is contained in:
Jean-Patrick Guerrero 2022-12-24 18:26:56 +01:00 committed by GitHub
parent d13b12b791
commit 33363c2a7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -466,8 +466,8 @@ void RenderingEngine::draw_load_screen(const std::wstring &text,
#ifndef __ANDROID__ #ifndef __ANDROID__
const core::dimension2d<u32> &img_size = const core::dimension2d<u32> &img_size =
progress_img_bg->getSize(); progress_img_bg->getSize();
u32 imgW = rangelim(img_size.Width, 200, 600); u32 imgW = rangelim(img_size.Width, 200, 600) * getDisplayDensity();
u32 imgH = rangelim(img_size.Height, 24, 72); u32 imgH = rangelim(img_size.Height, 24, 72) * getDisplayDensity();
#else #else
const core::dimension2d<u32> img_size(256, 48); const core::dimension2d<u32> img_size(256, 48);
float imgRatio = (float)img_size.Height / img_size.Width; float imgRatio = (float)img_size.Height / img_size.Width;