Diff of /trunk/src/map-tool.c

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

revision 226 by harbaum, Wed Dec 2 20:05:52 2009 UTC revision 233 by harbaum, Wed Dec 9 19:45:36 2009 UTC
# Line 119  static int dist2pixel(map_context_t *con Line 119  static int dist2pixel(map_context_t *con
119  static gboolean map_gps_update(gpointer data) {  static gboolean map_gps_update(gpointer data) {
120    map_context_t *context = (map_context_t*)data;    map_context_t *context = (map_context_t*)data;
121    
122    #ifdef USE_MAEMO
123      if(context->appdata->goto_disable_screensaver)
124        if(osso_display_blanking_pause(context->appdata->osso_context) != OSSO_OK)
125          fprintf(stderr, "error with display blank\n");
126    #endif
127    
128    /* get reference position ... */    /* get reference position ... */
129    pos_t *refpos = get_pos(context->appdata);    pos_t *refpos = get_pos(context->appdata);
130    gboolean ok = (refpos!= NULL) && !isnan(refpos->lat) && !isnan(refpos->lon);    gboolean ok = (refpos!= NULL) && !isnan(refpos->lat) && !isnan(refpos->lon);
# Line 362  static void map_setup(map_context_t *con Line 368  static void map_setup(map_context_t *con
368    
369    /* remove all existing appearances of this icon first */    /* remove all existing appearances of this icon first */
370    osm_gps_map_remove_image(OSM_GPS_MAP(context->widget),    osm_gps_map_remove_image(OSM_GPS_MAP(context->widget),
371                             icon_get(ICON_MISC, 6));                             icon_get(ICON_MISC, 4));
372    
373    if(!isnan(context->appdata->geomath.lat) &&    if(!isnan(context->appdata->geomath.lat) &&
374       !isnan(context->appdata->geomath.lon))  {       !isnan(context->appdata->geomath.lon))  {
# Line 370  static void map_setup(map_context_t *con Line 376  static void map_setup(map_context_t *con
376      osm_gps_map_add_image(OSM_GPS_MAP(context->widget),      osm_gps_map_add_image(OSM_GPS_MAP(context->widget),
377                            context->appdata->geomath.lat,                            context->appdata->geomath.lat,
378                            context->appdata->geomath.lon,                            context->appdata->geomath.lon,
379                            icon_get(ICON_MISC, 6));                            icon_get(ICON_MISC, 4));
380    }    }
381    
382    if(name) {    if(name) {

Legend:
Removed from v.226  
changed lines
  Added in v.233