From 8655fb851d067e04f25a42f0eb85d8951b235cd3 Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Sat, 21 Nov 2015 10:52:12 +0000 Subject: [PATCH] Shift the reference scale to be generated from the centre of the display. Previously this was done at the latitude of the bottom of the display. For most zoomed in usage it makes no practical difference, but when zoomed out it's more logical as it's on average nearer to actual scale at locations across the visible map. --- src/vikviewport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vikviewport.c b/src/vikviewport.c index d865d93fc..cfbbd87ca 100644 --- a/src/vikviewport.c +++ b/src/vikviewport.c @@ -492,8 +492,8 @@ void vik_viewport_draw_scale ( VikViewport *vvp ) PangoLayout *pl; gchar s[128]; - vik_viewport_screen_to_coord ( vvp, 0, vvp->height, &left ); - vik_viewport_screen_to_coord ( vvp, vvp->width/SCSIZE, vvp->height, &right ); + vik_viewport_screen_to_coord ( vvp, 0, vvp->height/2, &left ); + vik_viewport_screen_to_coord ( vvp, vvp->width/SCSIZE, vvp->height/2, &right ); vik_units_distance_t dist_units = a_vik_get_units_distance (); switch (dist_units) {