Browse Source

restore crop position for a photo who gets edited with CropTool again

main
Colin McMillen 11 months ago
parent
commit
1793fee616
  1. 2
      Program.cs

2
Program.cs

@ -88,6 +88,8 @@ public class CropTool : ITool {
public CropTool(Photo 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) {

Loading…
Cancel
Save