Commit 5fcd152d authored by Young-Ho Cha's avatar Young-Ho Cha Committed by Tim-Philipp Müller
Browse files

gst/subparse/samiparse.c: Need to map "silver" colour explicitly (#169936).

Original commit message from CVS:
Patch by: Young-Ho Cha <ganadist at chollian net>
* gst/subparse/samiparse.c: (handle_start_font):
Need to map "silver" colour explicitly (#169936).
parent e0cbb103
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Young-Ho Cha <ganadist at chollian net>
* gst/subparse/samiparse.c: (handle_start_font):
Need to map "silver" colour explicitly (#169936).
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
 
Patch by: Young-Ho Cha <ganadist at chollian net>
......
......@@ -173,6 +173,11 @@ handle_start_font (GstSamiContext * sctx, const xmlChar ** atts)
sharp = "#";
}
}
/* silver colour can be found in many sami files, but X RGB database
* doesn't contain a colour by this name, so map explicitly */
if (!xmlStrncmp ((const xmlChar *) "silver", value, 6)) {
value = (const xmlChar *) "#c0c0c0";
}
g_string_append_printf (sctx->buf, "<span foreground=\"%s%s\">", sharp,
value);
sami_context_push_state (sctx, COLOR_TAG);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment