ifdef for EXTRA_CHECK, and precalculate time_width_double
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / drawing.h
index bac0b6b8ad7a860b128997b2e3bbcdc04ae701d0..69840a1a75f5f51d07d229dc271a102261bc7165 100644 (file)
 
 #define SAFETY 50 // safety pixels at right and bottom of pixmap buffer
 
-
-typedef enum _draw_color { COL_BLACK,
-                           COL_WHITE,
-                           COL_WAIT_FORK,
-                           COL_WAIT_CPU,
-                           COL_EXIT,
-                           COL_ZOMBIE,
-                           COL_WAIT,
-                           COL_RUN,
-                           COL_USER_MODE,
-                           COL_SYSCALL,
-                           COL_TRAP,
-                           COL_IRQ,
-                           COL_MODE_UNKNOWN,
-                           NUM_COLORS } draw_color;
+typedef enum _draw_color {
+                COL_BLACK,
+                COL_WHITE,
+                COL_RUN_USER_MODE,/* green */
+                COL_RUN_SYSCALL,  /* pale blue */
+                COL_RUN_TRAP,     /* yellow */
+                COL_RUN_IRQ,      /* red */
+                COL_WAIT,         /* dark red */
+                COL_WAIT_CPU,     /* dark yellow */
+                COL_ZOMBIE,       /* dark purple */
+                COL_WAIT_FORK,    /* dark green */
+                COL_EXIT,         /* "less dark" magenta */
+                COL_MODE_UNKNOWN, /* white */
+                COL_UNNAMED,      /* white */
+                NUM_COLORS } draw_color; 
 
 extern GdkColor drawing_colors[NUM_COLORS];
 
@@ -137,13 +137,11 @@ void drawing_remove_square(Drawing_t *drawing,
 __inline void convert_pixels_to_time(
     gint width,
     guint x,
-    LttTime window_time_begin,
-    LttTime window_time_end,
+    TimeWindow time_window,
     LttTime *time);
 
 __inline void convert_time_to_pixels(
-    LttTime window_time_begin,
-    LttTime window_time_end,
+    TimeWindow time_window,
     LttTime time,
     gint width,
     guint *x);
This page took 0.024194 seconds and 4 git commands to generate.