Added support for named colors, e.g. "white" and "black";

Added missing keys to locale.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@716 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-09-20 18:16:10 +00:00
parent 6f899db4d9
commit 1f3f4e01fe
5 changed files with 27 additions and 11 deletions
+3
View File
@@ -329,6 +329,9 @@ template <> void Reader::handle(Color& col) {
UInt r,g,b;
if (wxSscanf(getValue().c_str(),_("rgb(%u,%u,%u)"),&r,&g,&b)) {
col.Set(r, g, b);
} else {
col = Color(previous_value);
if (!col.Ok()) col = *wxBLACK;
}
}