From 885dc404583ce03297a0c8e2e4717b921e239642 Mon Sep 17 00:00:00 2001 From: pmf Date: Tue, 31 Jul 2007 19:46:14 +0000 Subject: [PATCH] don't forget to initialize the irq handler colors git-svn-id: http://ltt.polymtl.ca/svn@2565 04897980-b3bd-0310-b5e0-8ef037075253 --- ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c b/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c index ab9de32c..a40743f3 100644 --- a/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/resourceview/drawing.c @@ -97,7 +97,7 @@ GdkColor drawing_colors_irq[NUM_COLORS_IRQ] = { /* Pixel, R, G, B */ { 0, 0x0000, 0x0000, 0x0000 }, /* COL_IRQ_UNKNOWN */ { 0, 0xBBBB, 0xBBBB, 0xBBBB }, /* COL_IRQ_IDLE */ - { 0, 0xFFFF, 0xFFFF, 0xFFFF }, /* COL_IRQ_BUSY */ + { 0, 0xFFFF, 0x5E00, 0x0000 }, /* COL_IRQ_BUSY */ }; /***************************************************************************** @@ -1075,6 +1075,8 @@ Drawing_t *drawing_construct(ControlFlowData *control_flow_data) TRUE, success); gdk_colormap_alloc_colors(colormap, drawing_colors_cpu, NUM_COLORS_CPU, FALSE, TRUE, success); + gdk_colormap_alloc_colors(colormap, drawing_colors_irq, NUM_COLORS_IRQ, FALSE, + TRUE, success); drawing->gc = gdk_gc_new(GDK_DRAWABLE(main_window_get_widget(control_flow_data->tab)->window)); -- 2.34.1