#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)
if (event->button==2) {
#endif
gint pns=0, pew=0;
- if (event->x<MAP_THUMB_MARGIN)
+ if (event->x<MAP_THUMB_MARGIN_X)
pns=-PAN_UNITS;
- else if (event->x>(_screen_width_pixels-MAP_THUMB_MARGIN))
+ else if (event->x>(_screen_width_pixels-MAP_THUMB_MARGIN_X))
pns=PAN_UNITS;
- if (event->y<MAP_THUMB_MARGIN)
+ if (event->y<MAP_THUMB_MARGIN_Y)
pew=-PAN_UNITS;
- else if (event->y>(_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) {