Browse Source

Fix deprecation UI opacity when fading out.

--HG--
branch : minor
Alex Szpakowski 8 years ago
parent
commit
a25cf3c432
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/Deprecations.cpp

+ 1 - 1
src/modules/graphics/Deprecations.cpp

@@ -67,7 +67,7 @@ void Deprecations::draw(Graphics *gfx)
 
 	float alpha = 1.0f;
 	if (delta > (showTime - fadeTime))
-		alpha = (float) (1.0 - (delta - showTime - fadeTime) / fadeTime);
+		alpha = (float) (1.0 - (delta - (showTime - fadeTime)) / fadeTime);
 
 	if (alpha <= 0.0f)
 		return;