restore crop position for a photo who gets edited with CropTool again
This commit is contained in:
parent
304097177c
commit
1793fee616
@ -88,6 +88,8 @@ public class CropTool : ITool {
|
|||||||
|
|
||||||
public CropTool(Photo photo) {
|
public CropTool(Photo photo) {
|
||||||
activePhoto = photo;
|
activePhoto = photo;
|
||||||
|
mouseDragStart = new(photo.CropRectangle.Left, photo.CropRectangle.Top);
|
||||||
|
mouseDragEnd = new(photo.CropRectangle.Right, photo.CropRectangle.Bottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolState HandleInput(UiGeometry geometry, KeyboardState input, MouseState mouse, Game game) {
|
public ToolState HandleInput(UiGeometry geometry, KeyboardState input, MouseState mouse, Game game) {
|
||||||
|
Loading…
Reference in New Issue
Block a user