- unsigned long tmp;
- if (ScanParam(par, wxT("#%lX"), &tmp) != 1)
- return FALSE;
- *clr = wxColour((unsigned char)((tmp & 0xFF0000) >> 16),
- (unsigned char)((tmp & 0x00FF00) >> 8),
- (unsigned char)(tmp & 0x0000FF));
- return TRUE;
- }
- else
- {
- // Handle colours defined in HTML 4.0:
- #define HTML_COLOUR(name,r,g,b) \
- if (str.IsSameAs(wxT(name), FALSE)) \
- { *clr = wxColour(r,g,b); return TRUE; }
+ #define HTML_COLOUR(name, r, g, b) \
+ if (str.IsSameAs(wxSTRING_TEXT(name), false)) \
+ { clr->Set(r, g, b); return true; }