fixed expose bug
[lttv.git] / ltt / branches / poly / lttv / modules / gui / controlflow / drawing.h
index 1139d48b6127ba716b3141a100757617a958e621..63031bb1bfa75ac82cd68a6a3be95c96b39635a8 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_ZOMBIE,
+                           COL_WAIT,
+                           COL_RUN,
+                           NUM_COLORS } draw_color;
+
+extern GdkColor drawing_colors[NUM_COLORS];
+
 /* This part of the viewer does :
  * Draw horizontal lines, getting graphic context as arg.
  * Copy region of the screen into another.
@@ -76,8 +88,9 @@ struct _Drawing_t {
   gint      height, width, depth;
   
   /* X coordinate of damaged region */
-  gint      damage_begin, damage_end;
-  LttTime   last_start;
+  gint      damage_begin, damage_end; /* damaged region to be exposed,
+                                         updated per chunk */
+  LttTime   last_start;               
   GdkGC     *dotted_gc;
   GdkGC     *gc;
 };
This page took 0.024284 seconds and 4 git commands to generate.