From a2b3ec75a78f0ae3d94b75075c2229cb60521dd4 Mon Sep 17 00:00:00 2001 From: compudj Date: Wed, 11 Aug 2004 21:00:24 +0000 Subject: [PATCH] fixed expose bug git-svn-id: http://ltt.polymtl.ca/svn@703 04897980-b3bd-0310-b5e0-8ef037075253 --- .../lttv/modules/gui/controlflow/drawing.c | 20 +++++++++++++++---- .../lttv/modules/gui/controlflow/drawing.h | 5 +++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c index 78e18131..fc67fde5 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.c @@ -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; diff --git a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h index 02146cc8..63031bb1 100644 --- a/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h +++ b/ltt/branches/poly/lttv/modules/gui/controlflow/drawing.h @@ -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; }; -- 2.34.1