mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 05:23:24 -07:00
Fixes for better performance in some experimental code, also fixed some formatting in the code.
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2287 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
fa02394047
commit
75a841b31e
6 changed files with 72 additions and 24 deletions
|
@ -183,6 +183,13 @@ namespace Greenshot.Forms {
|
|||
// Toggle mouse cursor
|
||||
capture.CursorVisible = !capture.CursorVisible;
|
||||
Invalidate();
|
||||
} else if (e.KeyCode == Keys.V) {
|
||||
if (capture.CaptureDetails.CaptureMode != CaptureMode.Video) {
|
||||
capture.CaptureDetails.CaptureMode = CaptureMode.Video;
|
||||
} else {
|
||||
capture.CaptureDetails.CaptureMode = captureMode;
|
||||
}
|
||||
Invalidate();
|
||||
} else if (e.KeyCode == Keys.Z) {
|
||||
// Toggle zoom
|
||||
if (zoomForm == null) {
|
||||
|
@ -400,7 +407,11 @@ 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 );
|
||||
graphics.FillRectangle(GreenOverlayBrush, fixedRect);
|
||||
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