Diff of /trunk/src/osm-gps-map-osd-classic.c

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

revision 201 by harbaum, Fri Nov 20 20:16:04 2009 UTC revision 202 by harbaum, Sat Nov 21 20:13:13 2009 UTC
# Line 1404  osd_nav_check(osm_gps_map_osd_t *osd, gb Line 1404  osd_nav_check(osm_gps_map_osd_t *osd, gb
1404      y -= (osd->widget->allocation.height - OSD_NAV_H)/2;      y -= (osd->widget->allocation.height - OSD_NAV_H)/2;
1405    
1406      if(x >= 0 && y >= 0 && x <= OSD_NAV_W && y <= OSD_NAV_H) {      if(x >= 0 && y >= 0 && x <= OSD_NAV_W && y <= OSD_NAV_H) {
1407          printf("***************************\n");          osm_gps_map_set_center(OSM_GPS_MAP(osd->widget),
1408          printf("clicked inside nav: %d %d\n", x, y);                                 priv->nav.lat, priv->nav.lon);
         printf("***************************\n");  
1409      }      }
1410    
1411        FOUT;
1412      return OSD_NONE;      return OSD_NONE;
1413  }  }
1414    

Legend:
Removed from v.201  
changed lines
  Added in v.202