Use the correct format for ASS colors in the color picker

This commit is contained in:
Thomas Goyne 2012-11-22 08:21:47 -08:00
parent b1e40455ed
commit ded55272a0

View file

@ -855,7 +855,7 @@ void DialogColorPicker::UpdateFromRGB(bool dirty)
SetHSL(r, g, b);
SetHSV(r, g, b);
cur_color = agi::Color(r, g, b);
ass_input->ChangeValue(to_wx(cur_color.GetAssStyleFormatted()));
ass_input->ChangeValue(to_wx(cur_color.GetAssOverrideFormatted()));
html_input->ChangeValue(to_wx(cur_color.GetHexFormatted()));
if (dirty)
@ -874,7 +874,7 @@ void DialogColorPicker::UpdateFromHSL(bool dirty)
SetRGB(agi::Color(r, g, b));
SetHSV(r, g, b);
ass_input->ChangeValue(to_wx(cur_color.GetAssStyleFormatted()));
ass_input->ChangeValue(to_wx(cur_color.GetAssOverrideFormatted()));
html_input->ChangeValue(to_wx(cur_color.GetHexFormatted()));
if (dirty)
@ -892,7 +892,7 @@ void DialogColorPicker::UpdateFromHSV(bool dirty)
hsv_to_rgb(h, s, v, &r, &g, &b);
SetRGB(agi::Color(r, g, b));
SetHSL(r, g, b);
ass_input->ChangeValue(to_wx(cur_color.GetAssStyleFormatted()));
ass_input->ChangeValue(to_wx(cur_color.GetAssOverrideFormatted()));
html_input->ChangeValue(to_wx(cur_color.GetHexFormatted()));
if (dirty)