app: refactor GimpCanvasTransformPreview to not know GimpTransformTool any more
Instead, add drawable, transform, x1, y1 etc. properties. This is cleaner and has the nice side effect of not leaving artifacts, because the changed state of the transform tool doesn't affect the extents calculation any longer.
This commit is contained in:
@ -50,7 +50,13 @@ struct _GimpCanvasTransformPreviewClass
|
||||
GType gimp_canvas_transform_preview_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GimpCanvasItem * gimp_canvas_transform_preview_new (GimpDisplayShell *shell,
|
||||
GimpTransformTool *transform_tool,
|
||||
GimpDrawable *drawable,
|
||||
const GimpMatrix3 *transform,
|
||||
gdouble x1,
|
||||
gdouble y1,
|
||||
gdouble x2,
|
||||
gdouble y2,
|
||||
gboolean perspective,
|
||||
gdouble opacity);
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user