Small fix for new progressbar

master
MoNTE48 2020-05-03 23:01:18 +02:00
parent 13fed74b38
commit 872f0709e2
2 changed files with 3 additions and 1 deletions

View File

@ -638,8 +638,10 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device,
#else
float imgRatio = (float) img_size.Height / img_size.Width;
u32 imgW = npot2(screensize.X / 2);
if (imgW > (screensize.X * 0.6))
imgW /= 2;
u32 imgH = imgW * imgRatio;
float imgR = (float) (imgW) / img_size.Width;
float imgR = (float) imgW / img_size.Width;
#endif
v2s32 img_pos((screensize.X - imgW) / 2, (screensize.Y - imgH) / 2);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 272 B