234 |
points->coords[2*2+0] = center.x - diff.y - diff.x; |
points->coords[2*2+0] = center.x - diff.y - diff.x; |
235 |
points->coords[2*2+1] = center.y + diff.x - diff.y; |
points->coords[2*2+1] = center.y + diff.x - diff.y; |
236 |
|
|
237 |
map_hl_polygon_new(map, CANVAS_GROUP_NODES_HL, new_map_item, |
map_hl_polygon_new(map, CANVAS_GROUP_WAYS_DIR, new_map_item, |
238 |
points, map->style->highlight.arrow_color); |
points, map->style->highlight.arrow_color); |
239 |
|
|
240 |
canvas_points_free(points); |
canvas_points_free(points); |
1552 |
|
|
1553 |
case MAP_ACTION_WAY_NODE_ADD: |
case MAP_ACTION_WAY_NODE_ADD: |
1554 |
map_hl_cursor_clear(map); |
map_hl_cursor_clear(map); |
1555 |
map_item_t *item = map_real_item_at(map, x, y); |
map_item_t *item = map_item_at(map, x, y); |
1556 |
if(item) map_edit_way_node_add_highlight(map, item, x, y); |
if(item) map_edit_way_node_add_highlight(map, item, x, y); |
1557 |
break; |
break; |
1558 |
|
|
1559 |
case MAP_ACTION_WAY_CUT: |
case MAP_ACTION_WAY_CUT: |
1560 |
map_hl_cursor_clear(map); |
map_hl_cursor_clear(map); |
1561 |
item = map_real_item_at(map, x, y); |
item = map_item_at(map, x, y); |
1562 |
if(item) map_edit_way_cut_highlight(map, item, x, y); |
if(item) map_edit_way_cut_highlight(map, item, x, y); |
1563 |
break; |
break; |
1564 |
|
|