summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-07-01 21:16:25 +0000
committerIan C <ianc@noddybox.co.uk>2020-07-01 21:16:25 +0000
commit4e623e18fd39a79be6f9542b9481223812a9a5ee (patch)
treedba21b4e9e167d61f29d5af759df70bc049262b4
parentb256cc7c2f5d010861d452c2c975ee5811b49f7c (diff)
Small tweak to sprite edit to clear the display if button released outside of
the grid.
-rw-r--r--SpriteEd/NSSpriteEdit.cs8
1 files changed, 1 insertions, 7 deletions
diff --git a/SpriteEd/NSSpriteEdit.cs b/SpriteEd/NSSpriteEdit.cs
index 0dbd806..f6067ee 100644
--- a/SpriteEd/NSSpriteEdit.cs
+++ b/SpriteEd/NSSpriteEdit.cs
@@ -712,43 +712,36 @@ namespace SpriteEd
case DrawingMode.Line:
SaveUndo();
DrawSpriteLine(null);
- NeedsDisplay = true;
break;
case DrawingMode.Rect:
SaveUndo();
DrawSpriteRect(null, false);
- NeedsDisplay = true;
break;
case DrawingMode.FilledRect:
SaveUndo();
DrawSpriteRect(null, true);
- NeedsDisplay = true;
break;
case DrawingMode.Circle:
SaveUndo();
DrawSpriteEllipse(null, true, false);
- NeedsDisplay = true;
break;
case DrawingMode.FilledCircle:
SaveUndo();
DrawSpriteEllipse(null, true, true);
- NeedsDisplay = true;
break;
case DrawingMode.Ellipse:
SaveUndo();
DrawSpriteEllipse(null, false, false);
- NeedsDisplay = true;
break;
case DrawingMode.FilledEllipse:
SaveUndo();
DrawSpriteEllipse(null, false, true);
- NeedsDisplay = true;
break;
default:
@@ -760,6 +753,7 @@ namespace SpriteEd
m_sy = uint.MaxValue;
m_ex = uint.MaxValue;
m_ey = uint.MaxValue;
+ NeedsDisplay = true;
}
}
}