forked from mia/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
ebcdf0ce46
commit
05e847b6d2
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue