mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix progress bar look on HiDPI displays (#13055)
This commit is contained in:
parent
d13b12b791
commit
33363c2a7e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue