poix - _draw_width, poiy - _draw_width,
(MAX_ZOOM-_zoom)/6 * _draw_width, (MAX_ZOOM-_zoom)/6 * _draw_width, 0, 360 * 64);
- if (_zoom<3 && poi_label) {
- map_poi_title(poix, poiy, poi_label);
- }
} else {
+ guint w,h;
+ w=gdk_pixbuf_get_width(pixbuf);
+ h=gdk_pixbuf_get_height(pixbuf);
gdk_draw_pixbuf(_map_pixmap,
_gc[COLORABLE_POI],
pixbuf, 0, 0,
- poix - gdk_pixbuf_get_width(pixbuf) / 2,
- poiy - gdk_pixbuf_get_height(pixbuf) / 2,
+ poix-w/2,
+ poiy-h/2,
-1, -1, GDK_RGB_DITHER_NONE,
0, 0);
+ if (_zoom<2)
+ gdk_draw_rectangle(_map_pixmap, _gc[COLORABLE_POI], FALSE, poix-w/2-1, poiy-h/2-1, w+1, h+1);
+ }
+ if (_zoom<3 && poi_label) {
+ map_poi_title(poix, poiy, poi_label);
}
}
sqlite3_reset(poisql.select_poi);