Skip to content
  • Martin Nordholts's avatar
    Generalized to allow a variable number of lines for snapping, and · 4ef8797f
    Martin Nordholts authored
    2008-01-14  Martin Nordholts  <martinn@svn.gnome.org>
    
    	* app/tools/tools-utils.[ch]
    	(gimp_tool_motion_constrain): Generalized to allow a variable
    	number of lines for snapping, and rewritten to make snapping
    	happen more intuitively; snap the shortest distance rather than
    	only horizontally or vertically.
    	(gimp_tool_utils_point_to_line_distance): New helper function.
    
    	* app/tools/gimpblendtool.c
    	* app/tools/gimpmeasuretool.c
    	* app/tools/gimppainttool.c: Adjust to the new function signature.
    
    svn path=/trunk/; revision=24609
    4ef8797f