From: Kaj-Michael Lang Date: Fri, 11 Apr 2008 13:06:16 +0000 (+0300) Subject: Use different size margin areas for NE and WE movement X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e564df57214cb2900a96a8ff41133e2fc5a61d8;p=mapper Use different size margin areas for NE and WE movement --- 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) {