]> git.street.me.uk Git - andy/viking.git/commit - src/dialog.c
Position Trackpoint Edit and Waypoint dialogs to not obscure the selected point.
authorRob Norris <rw_norris@hotmail.com>
Fri, 22 Feb 2013 23:12:31 +0000 (23:12 +0000)
committerRob Norris <rw_norris@hotmail.com>
Tue, 9 Apr 2013 23:20:28 +0000 (00:20 +0100)
commitd6175f49c97650dbd7e1cc8c15cca3409e03f484
treecf1e6295964d9e761e360086987b0042bfba3ef4
parentc3a024291f1e9eee66b8dc343c24152359153b0e
Position Trackpoint Edit and Waypoint dialogs to not obscure the selected point.

Shift the dialog towards the opposite edge if we think the dialog will be drawn over the selected point.
For Trackpoint Edit this means it gets shifted up or down,
whilst the Waypoint Property/Edit dialog is shifted left or right.

Positioning of the dialog for a new Waypoint is unchanged.
src/dialog.c
src/dialog.h
src/viktrwlayer.c
src/viktrwlayer.h