jdorje: Change canvas_to_map_pos so it does not call...
<freeciv <at> freeciv.freeciv.org>
2003-04-03 04:21:01 GMT
This is an automated notification of a change to freeciv cvs,
on Wed Apr 2 20:13:48 PST 2003 = Thu Apr 3 04:13:48 2003 (GMT)
by Jason Dorje Short <jdorje <at> users.sourceforge.net>
---- Files affected:
freeciv/client goto.c mapctrl_common.c mapview_common.c mapview_common.h
freeciv/client/gui-gtk mapctrl.c mapview.h
freeciv/client/gui-gtk-2.0 mapctrl.c mapview.h
freeciv/client/gui-mui mapclass.c mapview.h
freeciv/client/gui-sdl finddlg.c mapctrl.c mapview.c mapview.h
freeciv/client/gui-win32 mapctrl.c mapview.h
freeciv/client/gui-xaw mapctrl.c mapview.h
freeciv/common map.c
---- Log message:
Tag: HEAD
Change canvas_to_map_pos so it does not call nearest_real_pos, it only
calls normalize_map_pos and returns the result. Many callers therefore
have to call nearest_real_pos on their own. The get_map_xy macros used by
GUI code are removed in the process. Finally, a comment is added to
normalize_map_pos explaining the new usage.
Patch by Arnstein Lindgard <a-l <at> c2i.net>, with changes by me, as PR#3798.