fixed expose bug
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 11 Aug 2004 21:00:24 +0000 (21:00 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 11 Aug 2004 21:00:24 +0000 (21:00 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@703 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c
ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h

index 78e18131234ca342021c864ed7182f9e2fc3abe1..fc67fde51818351353df4d7efef96bf467f8b5df 100644 (file)
@@ -152,7 +152,17 @@ void drawing_data_request(Drawing_t *drawing,
                  after_schedchange_hook,
                  events_request,
                  LTTV_PRIO_STATE+5);
+#if 0
   lttv_hooks_add(event,
+                 before_execmode_hook,
+                 events_request,
+                 LTTV_PRIO_STATE-5);
+  lttv_hooks_add(event,
+                 after_execmode_hook,
+                 events_request,
+                 LTTV_PRIO_STATE+5);
+#endif //0
+ lttv_hooks_add(event,
                  after_fork_hook,
                  events_request,
                  LTTV_PRIO_STATE+5);
@@ -233,8 +243,8 @@ void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss)
   LttvTracesetContext *tsc = LTTV_TRACESET_CONTEXT(tss);
   LttTime current_time = lttv_traceset_context_get_current_tfc(tsc)->timestamp;
 
-  cfd->drawing->last_start = LTT_TIME_MIN(current_time,
-                                          events_request->end_time);
+  //cfd->drawing->last_start = LTT_TIME_MIN(current_time,
+  //                                        events_request->end_time);
 }
 
 
@@ -255,7 +265,7 @@ void drawing_request_expose(EventsRequest *events_request,
   
   LttTime window_end = ltt_time_add(time_window.time_width,
                                     time_window.start_time);
-
+#if 0
   convert_time_to_pixels(
         time_window.start_time,
         window_end,
@@ -263,13 +273,15 @@ void drawing_request_expose(EventsRequest *events_request,
         drawing->width,
         &x);
 
+#endif //0
   convert_time_to_pixels(
         time_window.start_time,
         window_end,
         end_time,
         drawing->width,
         &x_end);
-
+  x = drawing->damage_begin;
+ // x_end = drawing->damage_end;
   width = x_end - x;
 
   drawing->damage_begin = x+width;
index 02146cc809aec28d2756b5fb94f0caafefb69f21..63031bb1bfa75ac82cd68a6a3be95c96b39635a8 100644 (file)
@@ -88,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.025998 seconds and 4 git commands to generate.