From 0e564df57214cb2900a96a8ff41133e2fc5a61d8 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 11 Apr 2008 16:06:16 +0300 Subject: [PATCH] Use different size margin areas for NE and WE movement --- src/map.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/map.c b/src/map.c index fc505e0..eea3afc 100644 --- a/src/map.c +++ b/src/map.c @@ -65,7 +65,8 @@ #define DEBUG_MAP_TIME 1 -#define MAP_THUMB_MARGIN (100) +#define MAP_THUMB_MARGIN_X (100) +#define MAP_THUMB_MARGIN_Y (75) /* Initial size */ #define BUF_WIDTH_TILES (4) @@ -1459,14 +1460,14 @@ if (hildon_helper_event_button_is_finger(event)) { if (event->button==2) { #endif gint pns=0, pew=0; - if (event->xxx>(_screen_width_pixels-MAP_THUMB_MARGIN)) + else if (event->x>(_screen_width_pixels-MAP_THUMB_MARGIN_X)) pns=PAN_UNITS; - if (event->yyy>(_screen_height_pixels-MAP_THUMB_MARGIN)) + else if (event->y>(_screen_height_pixels-MAP_THUMB_MARGIN_Y)) pew=PAN_UNITS; if (pns!=0 || pew!=0) { -- 2.39.5