Parent Directory | Revision Log | Patch
revision 1 by harbaum, Sat Jun 20 11:08:47 2009 UTC | revision 34 by harbaum, Wed Jul 29 19:24:15 2009 UTC | |
---|---|---|
# | Line 210 GtkWidget *icon_get_widget(int type, int | Line 210 GtkWidget *icon_get_widget(int type, int |
210 | } | } |
211 | ||
212 | GdkPixbuf *icon_bearing(pos_t from, pos_t to) { | GdkPixbuf *icon_bearing(pos_t from, pos_t to) { |
213 | if(!from.lat && !from.lon) | if(isnan(from.lat) && isnan(from.lon)) |
214 | return icon_get(ICON_HEADING, 8); | return icon_get(ICON_HEADING, 8); |
215 | ||
216 | int idx = (gpx_pos_get_bearing(from, to)+22.5)/45.0; | int idx = (gpx_pos_get_bearing(from, to)+22.5)/45.0; |
|