1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix progress bar

This commit is contained in:
nordsoft
2023-08-21 19:09:56 +04:00
parent 45f13c7964
commit a60d503078
3 changed files with 13 additions and 1 deletions

View File

@@ -614,7 +614,7 @@ void CLoadingScreen::showAll(Canvas & to)
//CSDL_Ext::fillRect(to, rect, Colors::TRANSPARENCY);
if(!progressBlocks.empty())
{
int status = float(get()) / (2.55f * progressBlocks.size());
int status = float(get()) / 255.f * progressBlocks.size();
for(int i = 0; i < status; ++i)
{