Moving back to trunk!

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-01-24 19:24:36 +00:00
parent ad265b2c54
commit 8d458998a1
332 changed files with 17647 additions and 9466 deletions

View file

@ -20,14 +20,9 @@
*/
using System;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.IO;
using System.Runtime.Serialization;
using System.Windows.Forms;
using Greenshot.Configuration;
using Greenshot.Drawing.Fields;
using Greenshot.Helpers;
using Greenshot.Plugin.Drawing;
namespace Greenshot.Drawing {
@ -106,5 +101,17 @@ namespace Greenshot.Drawing {
cursor.DrawStretched(graphics, Bounds);
}
}
public override void AddContextMenuItems(ContextMenuStrip menu) {
base.AddContextMenuItems(menu);
ToolStripMenuItem resetItem = new ToolStripMenuItem("Reset size");
resetItem.Click += delegate {
this.Invalidate();
Width = cursor.Size.Width;
Height = cursor.Size.Height;
this.Invalidate();
};
menu.Items.Add(resetItem);
}
}
}