mirror of
https://github.com/minetest/minetest.git
synced 2024-12-02 12:33:45 +01:00
Fix progress bar look on HiDPI displays (#13055)
This commit is contained in:
parent
d13b12b791
commit
33363c2a7e
@ -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…
Reference in New Issue
Block a user