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.
This commit is contained in:
RoosterDragon
2015-07-02 17:32:08 +01:00
parent 44bf3aed2e
commit 4c2b7469f9

View File

@@ -58,6 +58,7 @@ namespace OpenRA.Mods.Common.Widgets
var mixerSheet = new Sheet(new Size(256, 256)); var mixerSheet = new Sheet(new Size(256, 256));
mixerSheet.GetTexture().SetData(front, 256, 256); mixerSheet.GetTexture().SetData(front, 256, 256);
mixerSprite = new Sprite(mixerSheet, rect, TextureChannel.Alpha); mixerSprite = new Sprite(mixerSheet, rect, TextureChannel.Alpha);
GenerateBitmap();
} }
void GenerateBitmap() void GenerateBitmap()