]> git.lizzy.rs Git - minetest.git/commitdiff
Fix progress bar look on HiDPI displays (#13055)
authorJean-Patrick Guerrero <kilbith@users.noreply.github.com>
Sat, 24 Dec 2022 17:26:56 +0000 (18:26 +0100)
committerGitHub <noreply@github.com>
Sat, 24 Dec 2022 17:26:56 +0000 (12:26 -0500)
src/client/renderingengine.cpp

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