mirror of
https://github.com/greenshot/greenshot
synced 2025-08-20 13:33:27 -07:00
Fix GetAvailableScreenSpace on secondary screens
Co-Authored-By: jklingen <jklingen@users.noreply.github.com>
This commit is contained in:
parent
2be1898c53
commit
5fe700bc84
1 changed files with 1 additions and 1 deletions
|
@ -1526,7 +1526,7 @@ namespace Greenshot {
|
||||||
var screenBounds = screen.Bounds;
|
var screenBounds = screen.Bounds;
|
||||||
var workingArea = screen.WorkingArea;
|
var workingArea = screen.WorkingArea;
|
||||||
if (Left > screenBounds.Left && Top > screenBounds.Top) {
|
if (Left > screenBounds.Left && Top > screenBounds.Top) {
|
||||||
return new Size(workingArea.Width - Left, workingArea.Height - Top);
|
return new Size(workingArea.Right - Left, workingArea.Bottom - Top);
|
||||||
} else {
|
} else {
|
||||||
return workingArea.Size;
|
return workingArea.Size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue