From a25cf3c43240c857c56b6a55e8c0f6ad4b6a5e49 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Fri, 1 Sep 2017 18:10:57 -0300 Subject: [PATCH] Fix deprecation UI opacity when fading out. --HG-- branch : minor --- src/modules/graphics/Deprecations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/Deprecations.cpp b/src/modules/graphics/Deprecations.cpp index 939215dd0..0f45c04e4 100644 --- a/src/modules/graphics/Deprecations.cpp +++ b/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;