Small fix for new progressbar
parent
13fed74b38
commit
872f0709e2
|
@ -638,8 +638,10 @@ void draw_load_screen(const std::wstring &text, IrrlichtDevice* device,
|
||||||
#else
|
#else
|
||||||
float imgRatio = (float) img_size.Height / img_size.Width;
|
float imgRatio = (float) img_size.Height / img_size.Width;
|
||||||
u32 imgW = npot2(screensize.X / 2);
|
u32 imgW = npot2(screensize.X / 2);
|
||||||
|
if (imgW > (screensize.X * 0.6))
|
||||||
|
imgW /= 2;
|
||||||
u32 imgH = imgW * imgRatio;
|
u32 imgH = imgW * imgRatio;
|
||||||
float imgR = (float) (imgW) / img_size.Width;
|
float imgR = (float) imgW / img_size.Width;
|
||||||
#endif
|
#endif
|
||||||
v2s32 img_pos((screensize.X - imgW) / 2, (screensize.Y - imgH) / 2);
|
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 |
Loading…
Reference in New Issue