From 00dc72795633532f61a101be4d566da6f282f308 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 13 Nov 2000 09:51:54 +0000 Subject: Ajout de la routine Render --- generic/Map.c | 43 +++++++++++++++---------------------------- 1 file changed, 15 insertions(+), 28 deletions(-) (limited to 'generic/Map.c') diff --git a/generic/Map.c b/generic/Map.c index e7dd9e6..2d6a8ed 100644 --- a/generic/Map.c +++ b/generic/Map.c @@ -79,10 +79,6 @@ typedef struct _MapItemStruct { ZnList marks; ZnList symbols; ZnList texts; -#ifdef PERFOS - Chrono chrono_trans; - Chrono chrono_draw; -#endif } MapItemStruct, *MapItem; @@ -227,12 +223,6 @@ Init(Item item, map->marks = NULL; map->symbols = NULL; map->texts = NULL; - -#ifdef PERFOS - map->chrono_trans = NewChrono("Temps de transfo carte"); - map->chrono_draw = NewChrono("Temps de dessin carte"); - RazChronos(); -#endif return ZN_OK; } @@ -487,10 +477,6 @@ ComputeCoordinates(Item item, map_info = map->map_info; -#ifdef PERFOS - StartUCChrono(map->chrono_trans); -#endif - num_points = 0; num_dashed_points = 0; num_dotted_points = 0; @@ -850,12 +836,6 @@ ComputeCoordinates(Item item, ZnListAssertSize(map->dotted_arcs, num_dotted_arcs); ZnListAssertSize(map->mixed_arcs, num_mixed_arcs); -#ifdef PERFOS - StopUCChrono(map->chrono_trans); - PrintChronos(); - RazChronos(); -#endif - /* If map is filled, only the vectors description is valid. */ if (!map->filled) { if (map->symbol_patterns) { @@ -1042,9 +1022,6 @@ Draw(Item item) } else { /* Not filled */ -#ifdef PERFOS - StartUCChrono(map->chrono_draw); -#endif if (ZnListSize(map->vectors)) { SetLineStyle(wi->dpy, wi->gc, LINE_SIMPLE); values.fill_style = FillSolid; @@ -1277,12 +1254,21 @@ Draw(Item item) } } } +} -#ifdef PERFOS - StopUCChrono(map->chrono_draw); - PrintChronos(); - RazChronos(); -#endif + +/* + ********************************************************************************** + * + * Render -- + * + ********************************************************************************** + */ +static void +Render(Item item) +{ + /*WidgetInfo *wi = item->wi; + MapItem map = (MapItem) item;*/ } @@ -1396,6 +1382,7 @@ static ItemClassStruct MAP_ITEM_CLASS = { ComputeCoordinates, ToArea, Draw, + Render, IsSensitive, Pick, NULL, /* PickVertex */ -- cgit v1.1