From 57d2a8f1bf4e8bbed773de2e71c531f63a84b6be Mon Sep 17 00:00:00 2001 From: jwbaneiii Date: Thu, 30 Jan 2025 19:58:45 -0600 Subject: [PATCH] Fixes issue with ColoredRectangle not rendering the opacity correctly when it is overridden. --- GeonBit.UI/Source/Entities/ColoredRectangle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GeonBit.UI/Source/Entities/ColoredRectangle.cs b/GeonBit.UI/Source/Entities/ColoredRectangle.cs index e093a07..e264b39 100644 --- a/GeonBit.UI/Source/Entities/ColoredRectangle.cs +++ b/GeonBit.UI/Source/Entities/ColoredRectangle.cs @@ -125,7 +125,7 @@ override protected void DrawEntity(SpriteBatch spriteBatch, DrawPhase phase) } // get fill color - Color fill = FillColor; + Color fill = UserInterface.Active.DrawUtils.FixColorOpacity(FillColor); // draw the rectangle spriteBatch.Draw(Resources.Instance.WhiteTexture, _destRect, fill);