167 |
gint h = gdk_pixbuf_get_height(map_item->object.node->icon_buf); |
gint h = gdk_pixbuf_get_height(map_item->object.node->icon_buf); |
168 |
/* icons are technically square, so a radius slightly bigger */ |
/* icons are technically square, so a radius slightly bigger */ |
169 |
/* than sqrt(2)*MAX(w,h) should fit nicely */ |
/* than sqrt(2)*MAX(w,h) should fit nicely */ |
170 |
radius = map->state->detail * 0.75 * map->style->icon.scale * ((w>h)?w:h); |
radius = 0.75 * map->style->icon.scale * ((w>h)?w:h); |
171 |
} |
} |
172 |
|
|
173 |
|
radius *= map->state->detail; |
174 |
map_hl_circle_new(map, CANVAS_GROUP_NODES_HL, new_map_item, |
map_hl_circle_new(map, CANVAS_GROUP_NODES_HL, new_map_item, |
175 |
x, y, radius, map->style->highlight.color); |
x, y, radius, map->style->highlight.color); |
176 |
|
|