From 4e623e18fd39a79be6f9542b9481223812a9a5ee Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 1 Jul 2020 21:16:25 +0000 Subject: Small tweak to sprite edit to clear the display if button released outside of the grid. --- SpriteEd/NSSpriteEdit.cs | 8 +------- 1 file changed, 1 insertion(+), 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; } } } -- cgit v1.2.3