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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user