Diff of /trunk/src/map.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 103 by harbaum, Tue Mar 3 12:12:53 2009 UTC revision 105 by harbaum, Tue Mar 3 15:27:55 2009 UTC
# Line 234  void map_way_select(appdata_t *appdata, Line 234  void map_way_select(appdata_t *appdata,
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);
# Line 1552  static gboolean map_motion_notify_event( Line 1552  static gboolean map_motion_notify_event(
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    

Legend:
Removed from v.103  
changed lines
  Added in v.105