aboutsummaryrefslogtreecommitdiff
path: root/generic/Track.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/Track.c')
-rw-r--r--generic/Track.c6
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.