mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-24 09:31:24 +00:00
630fe55d17
* app/edit_selection.c: Finally moved selections snap to the guides again. Layer moves are slightly faster than before, if no guides are present. * app/gdisplay.c * app/gdisplay.h * app/gdisplayP.h: Use doubles for snap_to_point. Less rounding makes the result much better on low resolution. If it snaps, the result should be exactly the guide in almost all cases now. Only at very low resolutions, you may end up with an error of 1 pixel. Some code cleanup while I was on it... Fixes bug #2353. --Sven
29 lines
1,006 B
C
29 lines
1,006 B
C
/* The GIMP -- an image manipulation program
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
#ifndef __GDISPLAYP_H__
|
|
#define __GDISPLAYP_H__
|
|
|
|
typedef struct _GimpArea GimpArea;
|
|
|
|
struct _GimpArea
|
|
{
|
|
gint x1, y1, x2, y2; /* area bounds */
|
|
};
|
|
|
|
#endif /* __GDISPLAYP_H__ */
|