iscissors.c: fix a problem of using uninitialize variables
This commit is contained in:
@ -764,6 +764,8 @@ iscissors_draw_CR (GDisplay *gdisp,
|
||||
geometry[i][1] = pts[indices[i]].dy * SUPERSAMPLE;
|
||||
break;
|
||||
case SCREEN_COORDS:
|
||||
gdisplay_transform_coords_f(gdisp, (int) pts[indices[i]].dx,
|
||||
(int) pts[indicies[i]].dy, &x, &y, TRUE);
|
||||
geometry[i][0] = x;
|
||||
geometry[i][1] = y;
|
||||
/*g_print("%f %f\n", x, y);*/
|
||||
|
@ -764,6 +764,8 @@ iscissors_draw_CR (GDisplay *gdisp,
|
||||
geometry[i][1] = pts[indices[i]].dy * SUPERSAMPLE;
|
||||
break;
|
||||
case SCREEN_COORDS:
|
||||
gdisplay_transform_coords_f(gdisp, (int) pts[indices[i]].dx,
|
||||
(int) pts[indicies[i]].dy, &x, &y, TRUE);
|
||||
geometry[i][0] = x;
|
||||
geometry[i][1] = y;
|
||||
/*g_print("%f %f\n", x, y);*/
|
||||
|
@ -764,6 +764,8 @@ iscissors_draw_CR (GDisplay *gdisp,
|
||||
geometry[i][1] = pts[indices[i]].dy * SUPERSAMPLE;
|
||||
break;
|
||||
case SCREEN_COORDS:
|
||||
gdisplay_transform_coords_f(gdisp, (int) pts[indices[i]].dx,
|
||||
(int) pts[indicies[i]].dy, &x, &y, TRUE);
|
||||
geometry[i][0] = x;
|
||||
geometry[i][1] = y;
|
||||
/*g_print("%f %f\n", x, y);*/
|
||||
|
Reference in New Issue
Block a user