summaryrefslogtreecommitdiffstats
path: root/friendfinder/map/object.c
diff options
context:
space:
mode:
authorPatrick Hornecker2010-01-04 17:05:27 +0100
committerPatrick Hornecker2010-01-04 17:05:27 +0100
commit0ff5700527431d9372ae56179f541bcea2a72f97 (patch)
treebfa8e354e860327520bc5a25f76104c837734a96 /friendfinder/map/object.c
parentdrawing of user positions (diff)
downloadfriendfinder-0ff5700527431d9372ae56179f541bcea2a72f97.tar.gz
friendfinder-0ff5700527431d9372ae56179f541bcea2a72f97.tar.xz
friendfinder-0ff5700527431d9372ae56179f541bcea2a72f97.zip
more position features
Diffstat (limited to 'friendfinder/map/object.c')
-rw-r--r--friendfinder/map/object.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/friendfinder/map/object.c b/friendfinder/map/object.c
index f4f4c0b..c337cc4 100644
--- a/friendfinder/map/object.c
+++ b/friendfinder/map/object.c
@@ -11,6 +11,8 @@
#include "smart_map_priv.h"
+#include "../draw_user.h"
+
static void tile_array_add(struct smart_map *smart, int index)
{
smart->ta.tiles[index] = e_smart_tile_add(smart->evas);
@@ -167,6 +169,9 @@ int map_object_update(struct smart_map *smart)
if(smart->theme == NULL)
return 0;
+
+ get_own_position(smart->ta.lat, smart->ta.lon);
+ get_sender_position(smart->ta.lat, smart->ta.lon);
snprintf(buffer, 512, "%lf * %lf", smart->ta.lat, smart->ta.lon);
smart->lat = smart->ta.lat;