mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
cac99fbaf3
commit
f01731ef16
3 changed files with 3 additions and 43 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue