Disabled some unused code.

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1878 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2012-05-18 09:02:38 +00:00
parent cac99fbaf3
commit f01731ef16
3 changed files with 3 additions and 43 deletions

View file

@ -124,6 +124,7 @@ namespace Greenshot.Forms {
// Fix missing focus
WindowDetails.ToForeground(this.Handle);
this.TopMost = true;
}
#region key handling
@ -147,9 +148,6 @@ namespace Greenshot.Forms {
// Toggle mouse cursor
capture.CursorVisible = !capture.CursorVisible;
pictureBox.Invalidate();
} else if (e.KeyCode == Keys.V && conf.isExperimentalFeatureEnabled("Video")) {
capture.CaptureDetails.CaptureMode = CaptureMode.Video;
pictureBox.Invalidate();
} else if (e.KeyCode == Keys.Space) {
switch (captureMode) {
case CaptureMode.Region:
@ -347,11 +345,6 @@ namespace Greenshot.Forms {
if (mouseDown || captureMode == CaptureMode.Window) {
captureRect.Intersect(new Rectangle(Point.Empty, capture.ScreenBounds.Size)); // crop what is outside the screen
Rectangle fixedRect = new Rectangle( captureRect.X, captureRect.Y, captureRect.Width, captureRect.Height );
if (capture.CaptureDetails.CaptureMode == CaptureMode.Video) {
graphics.FillRectangle( RedOverlayBrush, fixedRect );
} else {
graphics.FillRectangle( GreenOverlayBrush, fixedRect );
}
graphics.DrawRectangle( OverlayPen, fixedRect );
// rulers