Skip to content

Commit

Permalink
Shift the reference scale to be generated from the centre of the disp…
Browse files Browse the repository at this point in the history
…lay.

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.
  • Loading branch information
rnorris committed Nov 24, 2015
1 parent d8635dd commit 8655fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vikviewport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8655fb8

Please sign in to comment.