|
|
|
|
@ -485,13 +485,13 @@ void draw_map () {
|
|
|
|
|
|| ((view_scale < 0.1 && (n % 2) == 0) || carea->p_cnt < 5)
|
|
|
|
|
|| ((view_scale < 0.1 && (n % 4) == 0) || carea->p_cnt < 10)) {
|
|
|
|
|
p1 = draw_geo2screen (view_lon, view_lat, carea->p[n].lon, carea->p[n].lat);
|
|
|
|
|
if (n == 0) {
|
|
|
|
|
draw_line (img_map, p1.x + center.x - 5, p1.y + center.y - 5, p1.x + center.x + 5, p1.y + center.y + 5, tmplinestyle);
|
|
|
|
|
draw_line (img_map, p1.x + center.x + 5, p1.y + center.y - 5, p1.x + center.x - 5, p1.y + center.y + 5, tmplinestyle);
|
|
|
|
|
}
|
|
|
|
|
if (n == 0) sprintf (text, "%d:%d", n, carea->subid);
|
|
|
|
|
else sprintf (text, "%d", n);
|
|
|
|
|
gfx_draw_text (img_map, p1.x + center.x - 20, p1.y + center.y - 10, text, &color[COLOR_white][3]);
|
|
|
|
|
// if (n == 0) {
|
|
|
|
|
// draw_line (img_map, p1.x + center.x - 5, p1.y + center.y - 5, p1.x + center.x + 5, p1.y + center.y + 5, tmplinestyle);
|
|
|
|
|
// draw_line (img_map, p1.x + center.x + 5, p1.y + center.y - 5, p1.x + center.x - 5, p1.y + center.y + 5, tmplinestyle);
|
|
|
|
|
// }
|
|
|
|
|
// if (n == 0) sprintf (text, "%d:%d", n, carea->subid);
|
|
|
|
|
// else sprintf (text, "%d", n);
|
|
|
|
|
// gfx_draw_text (img_map, p1.x + center.x - 20, p1.y + center.y - 10, text, &color[COLOR_white][3]);
|
|
|
|
|
draw_polygonadd (p1.x + center.x, p1.y + center.y);
|
|
|
|
|
}
|
|
|
|
|
draw_polygonfinish (img_map, tmplinestyle, &color_polygon[carea->type], 0);
|
|
|
|
|
|