fixes to colorization

Original commit message from CVS:
fixes to colorization
This commit is contained in:
Erik Walthinsen 2001-04-27 21:09:42 +00:00
parent cb0068581c
commit 0a7edf91e0
2 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ static gchar *_gst_info_category_strings[] = {
"NEGOTIATION",
};
const gchar *_gst_category_colors[] = {
const gchar *_gst_category_colors[32] = {
[GST_CAT_GST_INIT] = "00;37",
[GST_CAT_COTHREADS] = "00;32",
[GST_CAT_COTHREAD_SWITCH] = "00;32",
@ -101,7 +101,7 @@ const gchar *_gst_category_colors[] = {
/* colorization hash */
inline gint _gst_debug_stringhash_color(gchar *file) {
int filecolor;
int filecolor = 0;
while (file[0]) filecolor += *(char *)(file++);
filecolor = (filecolor % 6) + 31;
return filecolor;

View file

@ -310,7 +310,7 @@ enum {
};
extern const gchar *_gst_category_colors[GST_CAT_MAX_CATEGORY];
extern const gchar *_gst_category_colors[32];