X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2Fgui%2Fcontrolflow%2Feventhooks.c;h=ea08a9d7bbac082cc0374e0c94651244b531c2dd;hb=21e8c385eea6d358ce5c7254eb4e8fbdd5393425;hp=a1ae64b48a69378cd2f656dfe66eeeaa4efe19bc;hpb=a117e3f7f0b05f343f65e0690722fa760b77d215;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c index a1ae64b4..ea08a9d7 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/eventhooks.c @@ -1,3 +1,22 @@ +/* This file is part of the Linux Trace Toolkit viewer + * Copyright (C) 2003-2004 Mathieu Desnoyers + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License Version 2 as + * published by the Free Software Foundation; + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, + * MA 02111-1307, USA. + */ + + /***************************************************************************** * Hooks to be called by the main window * *****************************************************************************/ @@ -12,6 +31,7 @@ #include #include #include +#include //#include @@ -22,7 +42,7 @@ #include #include #include -#include +#include #include "eventhooks.h" @@ -252,7 +272,9 @@ int draw_event_hook(void *hook_data, void *call_data) DrawContext *draw_context_out = hashed_process_data_out->draw_context; draw_context_out->current->modify_over->x = x; + draw_context_out->current->modify_under->x = x; draw_context_out->current->modify_over->y = y_out; + draw_context_out->current->modify_under->y = y_out+(height/2)+2; draw_context_out->drawable = control_flow_data->drawing->pixmap; draw_context_out->pango_layout = control_flow_data->drawing->pango_layout; GtkWidget *widget = control_flow_data->drawing->drawing_area; @@ -265,26 +287,70 @@ int draw_event_hook(void *hook_data, void *call_data) //test_draw_item(control_flow_data->drawing, control_flow_data->drawing->pixmap); GdkColor colorfg_out = { 0, 0xffff, 0x0000, 0x0000 }; - GdkColor colorbg_out = { 0, 0xffff, 0xffff, 0xffff }; + GdkColor colorbg_out = { 0, 0x0000, 0x0000, 0x0000 }; PropertiesText prop_text_out; prop_text_out.foreground = &colorfg_out; prop_text_out.background = &colorbg_out; - prop_text_out.size = 10; + prop_text_out.size = 6; prop_text_out.position = OVER; + /* color of text : status of the process */ + if(process_out->state->s == LTTV_STATE_UNNAMED) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0xffff; + } + else if(process_out->state->s == LTTV_STATE_WAIT_FORK) + { + prop_text_out.foreground->red = 0x0fff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0x0fff; + } + else if(process_out->state->s == LTTV_STATE_WAIT_CPU) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0x0000; + } + else if(process_out->state->s == LTTV_STATE_EXIT) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0xffff; + } + else if(process_out->state->s == LTTV_STATE_WAIT) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0x0000; + } + else if(process_out->state->s == LTTV_STATE_RUN) + { + prop_text_out.foreground->red = 0x0000; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0x0000; + } + else + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0xffff; + } + /* Print status of the process : U, WF, WC, E, W, R */ if(process_out->state->s == LTTV_STATE_UNNAMED) - prop_text_out.text = "U"; + prop_text_out.text = "U->"; else if(process_out->state->s == LTTV_STATE_WAIT_FORK) - prop_text_out.text = "WF"; + prop_text_out.text = "WF->"; else if(process_out->state->s == LTTV_STATE_WAIT_CPU) - prop_text_out.text = "WC"; + prop_text_out.text = "WC->"; else if(process_out->state->s == LTTV_STATE_EXIT) - prop_text_out.text = "E"; + prop_text_out.text = "E->"; else if(process_out->state->s == LTTV_STATE_WAIT) - prop_text_out.text = "W"; + prop_text_out.text = "W->"; else if(process_out->state->s == LTTV_STATE_RUN) - prop_text_out.text = "R"; + prop_text_out.text = "R->"; else prop_text_out.text = "U"; @@ -309,16 +375,16 @@ int draw_event_hook(void *hook_data, void *call_data) PropertiesLine prop_line_out; prop_line_out.color = g_new(GdkColor,1); - prop_line_out.line_width = 4; + prop_line_out.line_width = 2; prop_line_out.style = GDK_LINE_SOLID; prop_line_out.position = MIDDLE; /* color of line : status of the process */ if(process_out->state->s == LTTV_STATE_UNNAMED) { - prop_line_out.color->red = 0x0000; - prop_line_out.color->green = 0x0000; - prop_line_out.color->blue = 0x0000; + prop_line_out.color->red = 0xffff; + prop_line_out.color->green = 0xffff; + prop_line_out.color->blue = 0xffff; } else if(process_out->state->s == LTTV_STATE_WAIT_FORK) { @@ -328,8 +394,8 @@ int draw_event_hook(void *hook_data, void *call_data) } else if(process_out->state->s == LTTV_STATE_WAIT_CPU) { - prop_line_out.color->red = 0x0fff; - prop_line_out.color->green = 0x0fff; + prop_line_out.color->red = 0xffff; + prop_line_out.color->green = 0xffff; prop_line_out.color->blue = 0x0000; } else if(process_out->state->s == LTTV_STATE_EXIT) @@ -352,9 +418,9 @@ int draw_event_hook(void *hook_data, void *call_data) } else { - prop_line_out.color->red = 0x0000; - prop_line_out.color->green = 0x0000; - prop_line_out.color->blue = 0x0000; + prop_line_out.color->red = 0xffff; + prop_line_out.color->green = 0xffff; + prop_line_out.color->blue = 0xffff; } draw_line((void*)&prop_line_out, (void*)draw_context_out); @@ -366,7 +432,9 @@ int draw_event_hook(void *hook_data, void *call_data) DrawContext *draw_context_in = hashed_process_data_in->draw_context; draw_context_in->current->modify_over->x = x; + draw_context_in->current->modify_under->x = x; draw_context_in->current->modify_over->y = y_in; + draw_context_in->current->modify_under->y = y_in+(height/2)+2; draw_context_in->drawable = control_flow_data->drawing->pixmap; draw_context_in->pango_layout = control_flow_data->drawing->pango_layout; widget = control_flow_data->drawing->drawing_area; @@ -379,26 +447,72 @@ int draw_event_hook(void *hook_data, void *call_data) //test_draw_item(control_flow_data->drawing, control_flow_data->drawing->pixmap); GdkColor colorfg_in = { 0, 0x0000, 0xffff, 0x0000 }; - GdkColor colorbg_in = { 0, 0xffff, 0xffff, 0xffff }; + GdkColor colorbg_in = { 0, 0x0000, 0x0000, 0x0000 }; PropertiesText prop_text_in; prop_text_in.foreground = &colorfg_in; prop_text_in.background = &colorbg_in; - prop_text_in.size = 10; + prop_text_in.size = 6; prop_text_in.position = OVER; + /* foreground of text : status of the process */ + if(process_in->state->s == LTTV_STATE_UNNAMED) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0xffff; + } + else if(process_in->state->s == LTTV_STATE_WAIT_FORK) + { + prop_text_in.foreground->red = 0x0fff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0x0fff; + } + else if(process_in->state->s == LTTV_STATE_WAIT_CPU) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0x0000; + } + else if(process_in->state->s == LTTV_STATE_EXIT) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0xffff; + } + else if(process_in->state->s == LTTV_STATE_WAIT) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0x0000; + } + else if(process_in->state->s == LTTV_STATE_RUN) + { + prop_text_in.foreground->red = 0x0000; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0x0000; + } + else + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0xffff; + } + + + /* Print status of the process : U, WF, WC, E, W, R */ if(process_in->state->s == LTTV_STATE_UNNAMED) - prop_text_in.text = "U"; + prop_text_in.text = "U->"; else if(process_in->state->s == LTTV_STATE_WAIT_FORK) - prop_text_in.text = "WF"; + prop_text_in.text = "WF->"; else if(process_in->state->s == LTTV_STATE_WAIT_CPU) - prop_text_in.text = "WC"; + prop_text_in.text = "WC->"; else if(process_in->state->s == LTTV_STATE_EXIT) - prop_text_in.text = "E"; + prop_text_in.text = "E->"; else if(process_in->state->s == LTTV_STATE_WAIT) - prop_text_in.text = "W"; + prop_text_in.text = "W->"; else if(process_in->state->s == LTTV_STATE_RUN) - prop_text_in.text = "R"; + prop_text_in.text = "R->"; else prop_text_in.text = "U"; @@ -423,16 +537,16 @@ int draw_event_hook(void *hook_data, void *call_data) PropertiesLine prop_line_in; prop_line_in.color = g_new(GdkColor,1); - prop_line_in.line_width = 4; + prop_line_in.line_width = 2; prop_line_in.style = GDK_LINE_SOLID; prop_line_in.position = MIDDLE; /* color of line : status of the process */ if(process_in->state->s == LTTV_STATE_UNNAMED) { - prop_line_in.color->red = 0x0000; - prop_line_in.color->green = 0x0000; - prop_line_in.color->blue = 0x0000; + prop_line_in.color->red = 0xffff; + prop_line_in.color->green = 0xffff; + prop_line_in.color->blue = 0xffff; } else if(process_in->state->s == LTTV_STATE_WAIT_FORK) { @@ -442,8 +556,8 @@ int draw_event_hook(void *hook_data, void *call_data) } else if(process_in->state->s == LTTV_STATE_WAIT_CPU) { - prop_line_in.color->red = 0x0fff; - prop_line_in.color->green = 0x0fff; + prop_line_in.color->red = 0xffff; + prop_line_in.color->green = 0xffff; prop_line_in.color->blue = 0x0000; } else if(process_in->state->s == LTTV_STATE_EXIT) @@ -466,9 +580,9 @@ int draw_event_hook(void *hook_data, void *call_data) } else { - prop_line_in.color->red = 0x0000; - prop_line_in.color->green = 0x0000; - prop_line_in.color->blue = 0x0000; + prop_line_in.color->red = 0xffff; + prop_line_in.color->green = 0xffff; + prop_line_in.color->blue = 0xffff; } draw_line((void*)&prop_line_in, (void*)draw_context_in); @@ -535,12 +649,12 @@ int draw_after_hook(void *hook_data, void *call_data) pid_out = ltt_event_get_long_unsigned(e,element); element = ltt_field_member(f,1); pid_in = ltt_event_get_long_unsigned(e,element); - g_critical("out : %u in : %u", pid_out, pid_in); + //g_critical("out : %u in : %u", pid_out, pid_in); /* Find process pid_out in the list... */ process_out = lttv_state_find_process(tfs, pid_out); - g_critical("out : %s",g_quark_to_string(process_out->state->s)); + //g_critical("out : %s",g_quark_to_string(process_out->state->s)); birth = process_out->creation_time; gchar *name = strdup(g_quark_to_string(process_out->name)); @@ -573,7 +687,7 @@ int draw_after_hook(void *hook_data, void *call_data) /* Find process pid_in in the list... */ process_in = lttv_state_find_process(tfs, pid_in); - g_critical("in : %s",g_quark_to_string(process_in->state->s)); + //g_critical("in : %s",g_quark_to_string(process_in->state->s)); birth = process_in->creation_time; name = strdup(g_quark_to_string(process_in->name)); @@ -630,6 +744,7 @@ int draw_after_hook(void *hook_data, void *call_data) DrawContext *draw_context_out = hashed_process_data_out->draw_context; //draw_context_out->current->modify_over->x = x; draw_context_out->current->modify_over->y = y_out; + draw_context_out->current->modify_under->y = y_out+(height/2)+2; draw_context_out->drawable = control_flow_data->drawing->pixmap; draw_context_out->pango_layout = control_flow_data->drawing->pango_layout; GtkWidget *widget = control_flow_data->drawing->drawing_area; @@ -640,13 +755,57 @@ int draw_after_hook(void *hook_data, void *call_data) //test_draw_item(control_flow_data->drawing, control_flow_data->drawing->pixmap); GdkColor colorfg_out = { 0, 0xffff, 0x0000, 0x0000 }; - GdkColor colorbg_out = { 0, 0xffff, 0xffff, 0xffff }; + GdkColor colorbg_out = { 0, 0x0000, 0x0000, 0x0000 }; PropertiesText prop_text_out; prop_text_out.foreground = &colorfg_out; prop_text_out.background = &colorbg_out; - prop_text_out.size = 10; + prop_text_out.size = 6; prop_text_out.position = OVER; + /* color of text : status of the process */ + if(process_out->state->s == LTTV_STATE_UNNAMED) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0xffff; + } + else if(process_out->state->s == LTTV_STATE_WAIT_FORK) + { + prop_text_out.foreground->red = 0x0fff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0x0fff; + } + else if(process_out->state->s == LTTV_STATE_WAIT_CPU) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0x0000; + } + else if(process_out->state->s == LTTV_STATE_EXIT) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0xffff; + } + else if(process_out->state->s == LTTV_STATE_WAIT) + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0x0000; + prop_text_out.foreground->blue = 0x0000; + } + else if(process_out->state->s == LTTV_STATE_RUN) + { + prop_text_out.foreground->red = 0x0000; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0x0000; + } + else + { + prop_text_out.foreground->red = 0xffff; + prop_text_out.foreground->green = 0xffff; + prop_text_out.foreground->blue = 0xffff; + } + /* Print status of the process : U, WF, WC, E, W, R */ if(process_out->state->s == LTTV_STATE_UNNAMED) prop_text_out.text = "U"; @@ -664,7 +823,7 @@ int draw_after_hook(void *hook_data, void *call_data) prop_text_out.text = "U"; draw_text((void*)&prop_text_out, (void*)draw_context_out); - + draw_context_out->current->middle->y = y_out+height/2; draw_context_out->current->status = process_out->state->s; @@ -705,6 +864,7 @@ int draw_after_hook(void *hook_data, void *call_data) DrawContext *draw_context_in = hashed_process_data_in->draw_context; //draw_context_in->current->modify_over->x = x; draw_context_in->current->modify_over->y = y_in; + draw_context_in->current->modify_under->y = y_in+(height/2)+2; draw_context_in->drawable = control_flow_data->drawing->pixmap; draw_context_in->pango_layout = control_flow_data->drawing->pango_layout; widget = control_flow_data->drawing->drawing_area; @@ -715,13 +875,58 @@ int draw_after_hook(void *hook_data, void *call_data) //test_draw_item(control_flow_data->drawing, control_flow_data->drawing->pixmap); GdkColor colorfg_in = { 0, 0x0000, 0xffff, 0x0000 }; - GdkColor colorbg_in = { 0, 0xffff, 0xffff, 0xffff }; + GdkColor colorbg_in = { 0, 0x0000, 0x0000, 0x0000 }; PropertiesText prop_text_in; prop_text_in.foreground = &colorfg_in; prop_text_in.background = &colorbg_in; - prop_text_in.size = 10; + prop_text_in.size = 6; prop_text_in.position = OVER; + /* foreground of text : status of the process */ + if(process_in->state->s == LTTV_STATE_UNNAMED) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0xffff; + } + else if(process_in->state->s == LTTV_STATE_WAIT_FORK) + { + prop_text_in.foreground->red = 0x0fff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0x0fff; + } + else if(process_in->state->s == LTTV_STATE_WAIT_CPU) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0x0000; + } + else if(process_in->state->s == LTTV_STATE_EXIT) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0xffff; + } + else if(process_in->state->s == LTTV_STATE_WAIT) + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0x0000; + prop_text_in.foreground->blue = 0x0000; + } + else if(process_in->state->s == LTTV_STATE_RUN) + { + prop_text_in.foreground->red = 0x0000; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0x0000; + } + else + { + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0xffff; + } + + /* Print status of the process : U, WF, WC, E, W, R */ if(process_in->state->s == LTTV_STATE_UNNAMED) prop_text_in.text = "U"; @@ -740,6 +945,27 @@ int draw_after_hook(void *hook_data, void *call_data) draw_text((void*)&prop_text_in, (void*)draw_context_in); + if(process_in->state->s == LTTV_STATE_RUN) + { + gchar tmp[255]; + prop_text_in.foreground = &colorfg_in; + prop_text_in.background = &colorbg_in; + prop_text_in.foreground->red = 0xffff; + prop_text_in.foreground->green = 0xffff; + prop_text_in.foreground->blue = 0xffff; + prop_text_in.size = 6; + prop_text_in.position = UNDER; + + prop_text_in.text = g_new(gchar, 260); + strcpy(prop_text_in.text, "CPU "); + snprintf(tmp, 255, "%u", tfc->index); + strcat(prop_text_in.text, tmp); + + draw_text((void*)&prop_text_in, (void*)draw_context_in); + g_free(prop_text_in.text); + } + + draw_context_in->current->middle->y = y_in+height/2; draw_context_in->current->status = process_in->state->s; @@ -790,6 +1016,11 @@ gint update_time_window_hook(void *hook_data, void *call_data) guicontrolflow_get_time_window(control_flow_data); TimeWindow *new_time_window = ((TimeWindow*)call_data); + /* Update the ruler */ + drawing_update_ruler(control_flow_data->drawing, + new_time_window); + + /* Two cases : zoom in/out or scrolling */ /* In order to make sure we can reuse the old drawing, the scale must @@ -839,7 +1070,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) /* Copy old data to new location */ gdk_draw_drawable (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, control_flow_data->drawing->pixmap, x, 0, 0, 0, @@ -855,7 +1086,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) *old_time_window = *new_time_window; /* Clear the data request background, but not SAFETY */ gdk_draw_rectangle (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, TRUE, x+SAFETY, 0, control_flow_data->drawing->width - x, // do not overlap @@ -893,7 +1124,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) /* Copy old data to new location */ gdk_draw_drawable (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, control_flow_data->drawing->pixmap, 0, 0, x, 0, @@ -903,7 +1134,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) /* Clean the data request background */ gdk_draw_rectangle (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, TRUE, 0, 0, x, // do not overlap @@ -927,7 +1158,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) gdk_draw_rectangle (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, TRUE, 0, 0, control_flow_data->drawing->width+SAFETY, // do not overlap @@ -952,7 +1183,7 @@ gint update_time_window_hook(void *hook_data, void *call_data) *old_time_window = *new_time_window; gdk_draw_rectangle (control_flow_data->drawing->pixmap, - control_flow_data->drawing->drawing_area->style->white_gc, + control_flow_data->drawing->drawing_area->style->black_gc, TRUE, 0, 0, control_flow_data->drawing->width+SAFETY, // do not overlap @@ -971,6 +1202,8 @@ gint update_time_window_hook(void *hook_data, void *call_data) control_flow_data->drawing->height); } + + return 0; } @@ -1094,16 +1327,16 @@ void draw_closure(gpointer key, gpointer value, gpointer user_data) PropertiesLine prop_line; prop_line.color = g_new(GdkColor,1); - prop_line.line_width = 6; + prop_line.line_width = 2; prop_line.style = GDK_LINE_SOLID; prop_line.position = MIDDLE; /* color of line : status of the process */ if(process->state->s == LTTV_STATE_UNNAMED) { - prop_line.color->red = 0x0000; - prop_line.color->green = 0x0000; - prop_line.color->blue = 0x0000; + prop_line.color->red = 0xffff; + prop_line.color->green = 0xffff; + prop_line.color->blue = 0xffff; } else if(process->state->s == LTTV_STATE_WAIT_FORK) { @@ -1113,8 +1346,8 @@ void draw_closure(gpointer key, gpointer value, gpointer user_data) } else if(process->state->s == LTTV_STATE_WAIT_CPU) { - prop_line.color->red = 0x0fff; - prop_line.color->green = 0x0fff; + prop_line.color->red = 0xffff; + prop_line.color->green = 0xffff; prop_line.color->blue = 0x0000; } else if(process->state->s == LTTV_STATE_EXIT) @@ -1137,9 +1370,9 @@ void draw_closure(gpointer key, gpointer value, gpointer user_data) } else { - prop_line.color->red = 0x0000; - prop_line.color->green = 0x0000; - prop_line.color->blue = 0x0000; + prop_line.color->red = 0xffff; + prop_line.color->green = 0xffff; + prop_line.color->blue = 0xffff; } draw_line((void*)&prop_line, (void*)draw_context);