fixes the display artifact where the preview outline of the selected area

* app/iscissors.c: fixes the display artifact where the preview
outline of the selected area would not appear or would appear in
the wrong place or have the wrong shape
This commit is contained in:
Nate Summers 1998-03-26 19:17:42 +00:00
parent 0b9cf33499
commit cdd1e67305
4 changed files with 31 additions and 5 deletions

View File

@ -1,6 +1,11 @@
Thu Mar 26 12:15:38 MST 1998 Nathan Summers <rock@gimp.org>
* app/iscissors.c: fixes the display artifact where the preview
outline of the selected area would not appear or would appear in the
wrong place or have the wrong shape
Thu Mar 26 12:00:47 MST 1998 Nathan Summers <rock@gimp.org>
* iscissors.c: This should hopefully fix most of the UMRs
* app/iscissors.c: This should hopefully fix most of the UMRs
(uninitialized memory reads) found with Purify. No noticable
change in iscissors's behavior, unfortunately.
@ -21,7 +26,7 @@ Thu Mar 26 18:38:54 MET 1998 Sven Neumann <sven@gimp.org>
Wed Mar 25 22:46:36 MST 1998 Nathan Summers <rock@gimp.org>
* iscissors.c: fixed a problem with unintialized variables
* app/iscissors.c: fixed a problem with unintialized variables
Wed Mar 25 19:29:09 PST 1998 Manish Singh <yosh@gimp.org>

View File

@ -749,6 +749,9 @@ iscissors_draw_CR (GDisplay *gdisp,
int index;
int i;
GimpDrawable *drawable;
drawable = gimage_active_drawable (gdisp->gimage);
/* construct the geometry matrix from the segment */
/* assumes that a valid segment containing 4 points is passed in */
@ -836,7 +839,11 @@ iscissors_draw_CR (GDisplay *gdisp,
{
/* add the point to the point buffer */
gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );
/*gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );*/
drawable_offsets(drawable, &tx, &ty);
tx += newx;
ty += newy;
gdk_points[index].x = tx;
gdk_points[index].y = ty;

View File

@ -749,6 +749,9 @@ iscissors_draw_CR (GDisplay *gdisp,
int index;
int i;
GimpDrawable *drawable;
drawable = gimage_active_drawable (gdisp->gimage);
/* construct the geometry matrix from the segment */
/* assumes that a valid segment containing 4 points is passed in */
@ -836,7 +839,11 @@ iscissors_draw_CR (GDisplay *gdisp,
{
/* add the point to the point buffer */
gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );
/*gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );*/
drawable_offsets(drawable, &tx, &ty);
tx += newx;
ty += newy;
gdk_points[index].x = tx;
gdk_points[index].y = ty;

View File

@ -749,6 +749,9 @@ iscissors_draw_CR (GDisplay *gdisp,
int index;
int i;
GimpDrawable *drawable;
drawable = gimage_active_drawable (gdisp->gimage);
/* construct the geometry matrix from the segment */
/* assumes that a valid segment containing 4 points is passed in */
@ -836,7 +839,11 @@ iscissors_draw_CR (GDisplay *gdisp,
{
/* add the point to the point buffer */
gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );
/*gdisplay_transform_coords (gdisp, newx, newy, &tx, &ty,1 );*/
drawable_offsets(drawable, &tx, &ty);
tx += newx;
ty += newy;
gdk_points[index].x = tx;
gdk_points[index].y = ty;