From 4c2b7469f95da1096409a1fef6895444e570ee32 Mon Sep 17 00:00:00 2001 From: RoosterDragon Date: Thu, 2 Jul 2015 17:32:08 +0100 Subject: [PATCH] Generate the selection bitmap when opening the ColorMixerWidget. Fixes a bug where opening the widget with a red color (i.e. hue = 0) would not generate this bitmap when opening the widget as that would not cause the selection bitmap to be refreshed. --- OpenRA.Mods.Common/Widgets/ColorMixerWidget.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenRA.Mods.Common/Widgets/ColorMixerWidget.cs b/OpenRA.Mods.Common/Widgets/ColorMixerWidget.cs index 394ad368bc..48efa2fbfb 100644 --- a/OpenRA.Mods.Common/Widgets/ColorMixerWidget.cs +++ b/OpenRA.Mods.Common/Widgets/ColorMixerWidget.cs @@ -58,6 +58,7 @@ namespace OpenRA.Mods.Common.Widgets var mixerSheet = new Sheet(new Size(256, 256)); mixerSheet.GetTexture().SetData(front, 256, 256); mixerSprite = new Sprite(mixerSheet, rect, TextureChannel.Alpha); + GenerateBitmap(); } void GenerateBitmap()