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); |