mirror of https://github.com/odrling/Aegisub
Make AssColor::Parse() also understand HTML colours with a bit of help from wx.
Originally committed to SVN as r2910.
This commit is contained in:
parent
d56982ed4a
commit
54037c56e7
|
@ -58,6 +58,12 @@ AssColor::AssColor (wxColour &color) {
|
|||
//////////////////
|
||||
// Parse from SSA/ASS
|
||||
void AssColor::Parse(const wxString value) {
|
||||
if (value.Len() > 0 && value[0] == _T('#')) {
|
||||
// HTML colour
|
||||
SetWXColor(wxColor(value));
|
||||
return;
|
||||
}
|
||||
|
||||
// Prepare
|
||||
char c,ostr[12];
|
||||
unsigned long outval;
|
||||
|
|
Loading…
Reference in New Issue