Ticket #658: boinc-parsecolor.patch
File boinc-parsecolor.patch, 785 bytes (added by , 16 years ago) |
---|
-
boinc_core_release_5_10_45/clientgui/SkinManager.cpp
old new 100 100 101 101 102 102 wxColour CSkinItem::ParseColor(wxString strColor) { 103 intred, green, blue;103 long red, green, blue; 104 104 wxStringTokenizer tkz(strColor, wxT(":"), wxTOKEN_RET_EMPTY); 105 wxString(tkz.GetNextToken()).ToLong( (long*)&red);106 wxString(tkz.GetNextToken()).ToLong( (long*)&green);107 wxString(tkz.GetNextToken()).ToLong( (long*)&blue);105 wxString(tkz.GetNextToken()).ToLong(&red); 106 wxString(tkz.GetNextToken()).ToLong(&green); 107 wxString(tkz.GetNextToken()).ToLong(&blue); 108 108 return wxColour((unsigned char)red, (unsigned char)green, (unsigned char)blue); 109 109 } 110 110