From 2f9028bf94de52aaace83b6ad3b099bfb6ecd235 Mon Sep 17 00:00:00 2001 From: Maksim Date: Sat, 31 Oct 2020 19:11:58 +0100 Subject: [PATCH] Fix progressbar scaling --- src/drawscene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/drawscene.cpp b/src/drawscene.cpp index e39e124a..2564e2b8 100644 --- a/src/drawscene.cpp +++ b/src/drawscene.cpp @@ -637,7 +637,8 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device, if (progress_img && progress_img_bg) { const core::dimension2d &img_size = progress_img_bg->getSize(); #if !defined(__ANDROID__) && !defined(__IOS__) - const float scale = porting::getDisplayDensity(); + float scale = porting::getDisplayDensity(); + scale = scale >= 1 ? scale : 1; u32 imgW = rangelim(img_size.Width, 256, 1024) * scale; u32 imgH = rangelim(img_size.Height, 32, 128) * scale; float imgR = scale;