Don't overwrite alpha when using the color picker screen dropper

This commit is contained in:
Thomas Goyne 2013-12-24 07:43:19 -08:00
parent f534205a91
commit c28a02a34d
1 changed files with 3 additions and 1 deletions

View File

@ -1058,7 +1058,9 @@ void DialogColorPicker::OnAlphaSliderChange(wxCommandEvent &) {
}
void DialogColorPicker::OnRecentSelect(wxThreadEvent &evt) {
SetColor(evt.GetPayload<agi::Color>());
agi::Color new_color = evt.GetPayload<agi::Color>();
new_color.a = cur_color.a;
SetColor(new_color);
}
void DialogColorPicker::OnDropperMouse(wxMouseEvent &evt) {