aboutsummaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorlecoanet2004-04-30 15:15:23 +0000
committerlecoanet2004-04-30 15:15:23 +0000
commit2c9452817151c3c37a7fbb1318995496c8ee5a9d (patch)
treeca4e1647e47f6f4627ebc64bf2a64867fc83c59a /generic
parenta9060688df4473c22ac2fda05d8e3e324bf0abd6 (diff)
downloadtkzinc-2c9452817151c3c37a7fbb1318995496c8ee5a9d.zip
tkzinc-2c9452817151c3c37a7fbb1318995496c8ee5a9d.tar.gz
tkzinc-2c9452817151c3c37a7fbb1318995496c8ee5a9d.tar.bz2
tkzinc-2c9452817151c3c37a7fbb1318995496c8ee5a9d.tar.xz
Added cast for a clean compile under Windows
Diffstat (limited to 'generic')
-rw-r--r--generic/MapInfo.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/MapInfo.c b/generic/MapInfo.c
index 91fc0b7..9b8894e 100644
--- a/generic/MapInfo.c
+++ b/generic/MapInfo.c
@@ -329,7 +329,7 @@ ZnMapInfoAddLine(ZnMapInfoId map_info,
line_struct.width = 0;
}
else {
- line_struct.width = line_width;
+ line_struct.width = (int) line_width;
}
line_struct.tag = tag;
line_struct.from.x = x_from;
@@ -372,7 +372,7 @@ ZnMapInfoReplaceLine(ZnMapInfoId map_info,
line_ptr->width = 0;
}
else {
- line_ptr->width = line_width;
+ line_ptr->width = (int) line_width;
}
line_ptr->tag = tag;
line_ptr->from.x = x_from;
@@ -757,14 +757,14 @@ ZnMapInfoAddArc(ZnMapInfoId map_info,
arc_struct.width = 0;
}
else {
- arc_struct.width = line_width;
+ arc_struct.width = (int) line_width;
}
arc_struct.tag = tag;
arc_struct.center.x = center_x;
arc_struct.center.y = center_y;
- arc_struct.radius = radius;
- arc_struct.start_angle = start_angle;
- arc_struct.extend = extend;
+ arc_struct.radius = (int) radius;
+ arc_struct.start_angle = (int) start_angle;
+ arc_struct.extend = (int) extend;
ZnListAdd(cur_map->arcs, &arc_struct, index);
}
@@ -794,14 +794,14 @@ ZnMapInfoReplaceArc(ZnMapInfoId map_info,
arc_ptr->width = 0;
}
else {
- arc_ptr->width = line_width;
+ arc_ptr->width = (int) line_width;
}
arc_ptr->tag = tag;
arc_ptr->center.x = center_x;
arc_ptr->center.y = center_y;
- arc_ptr->radius = radius;
- arc_ptr->start_angle = start_angle;
- arc_ptr->extend = extend;
+ arc_ptr->radius = (int) radius;
+ arc_ptr->start_angle = (int) start_angle;
+ arc_ptr->extend = (int) extend;
}
}
}
@@ -930,7 +930,7 @@ ZnMapInfoScale(ZnMapInfoId map_info,
for (i = 0; i < num; i++, arc_ptr++) {
arc_ptr->center.x *= factor;
arc_ptr->center.y *= factor;
- arc_ptr->radius *= factor;
+ arc_ptr->radius = (unsigned int) (arc_ptr->radius * factor);
}
}
}