diff options
author | lecoanet | 2002-03-29 13:12:24 +0000 |
---|---|---|
committer | lecoanet | 2002-03-29 13:12:24 +0000 |
commit | 9790119d5a35c3f703d53b00879c1d6bf69ba6c5 (patch) | |
tree | 03eb5cbe37cb20fb82362640d44298f6d2e2834c | |
parent | 22330873c7655bcddd84257587eb0a3f6eee17a8 (diff) | |
download | tkzinc-9790119d5a35c3f703d53b00879c1d6bf69ba6c5.zip tkzinc-9790119d5a35c3f703d53b00879c1d6bf69ba6c5.tar.gz tkzinc-9790119d5a35c3f703d53b00879c1d6bf69ba6c5.tar.bz2 tkzinc-9790119d5a35c3f703d53b00879c1d6bf69ba6c5.tar.xz |
* Les flags sont dans un unsigned short (16 flags).
* Adaptation de RenderPolyline (closed inutile).
-rw-r--r-- | generic/Track.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/Track.c b/generic/Track.c index 9560b5a..f039b93 100644 --- a/generic/Track.c +++ b/generic/Track.c @@ -91,7 +91,7 @@ typedef struct _TrackItemStruct { ItemStruct header; /* Public data */ - int flags; + unsigned short flags; Pixmap symbol; /* item symbol */ ZnGradient *symbol_color; int label_angle; /* Label angle from track. */ @@ -1210,6 +1210,7 @@ Draw(Item item) num_acc_pos = MIN(track->visible_history_size, ZnListSize(track->history)); hist = ZnListArray(track->history); side_size = MAX(width, height); + for (i = 0, nb_hist = 0; i < num_acc_pos; i++) { if (ISSET(track->flags, LAST_AS_FIRST_BIT) && (i == track->visible_history_size-1)) { @@ -1423,7 +1424,7 @@ Render(Item item) points = ZnListArray(track->leader_points); num_points = ZnListSize(track->leader_points); RenderPolyline(wi, - points, num_points, track->leader_width, False, + points, num_points, track->leader_width, track->leader_style, CapRound, JoinRound, track->leader_first_end, track->leader_last_end, track->leader_color); @@ -1447,7 +1448,6 @@ Render(Item item) num_acc_pos = MIN(track->visible_history_size, ZnListSize(track->history)); hist = ZnListArray(track->history); side_size = MAX(width, height); - /* * Turning off line and point smoothing * to enhance ;-) history drawing. |